Show / Hide Table of Contents

Class Keyboard

Provides access to keyboard devices. Note: this API is not implemented yet.

Inheritance
Object
Keyboard
Inherited Members
Object.ToString()
Object.Equals(Object)
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Namespace: OpenTK.Input
Assembly: OpenTK.dll
Syntax
public static class Keyboard

Methods

GetState()

Retrieves the combined KeyboardState for all keyboard devices.

Declaration
public static KeyboardState GetState()
Returns
Type Description
KeyboardState

An KeyboardState structure containing the combined state for all keyboard devices.

GetState(Int32)

Retrieves the KeyboardState for the specified keyboard device.

Declaration
public static KeyboardState GetState(int index)
Parameters
Type Name Description
Int32 index

The index of the keyboard device.

Returns
Type Description
KeyboardState

An KeyboardState structure containing the state of the keyboard device.

In This Article
Back to top Generated by DocFX