|
The Open Toolkit library
1.0
|
Encapsulates the state of a Keyboard device. More...
Inherits IEquatable< KeyboardState >.
Public Member Functions | |
| bool | IsKeyDown (Key key) |
| Gets a System.Boolean indicating whether this key is down. More... | |
| bool | IsKeyDown (short code) |
| Gets a System.Boolean indicating whether this scan code is down. More... | |
| bool | IsKeyUp (Key key) |
| Gets a System.Boolean indicating whether this key is up. More... | |
| bool | IsKeyUp (short code) |
| Gets a System.Boolean indicating whether this scan code is down. More... | |
| override bool | Equals (object obj) |
| Compares to an object instance for equality. More... | |
| override int | GetHashCode () |
| Generates a hashcode for the current instance. More... | |
| bool | Equals (KeyboardState other) |
| Compares two KeyboardState instances. More... | |
Static Public Member Functions | |
| static bool | operator== (KeyboardState left, KeyboardState right) |
| Checks whether two KeyboardState instances are equal. More... | |
| static bool | operator!= (KeyboardState left, KeyboardState right) |
| Checks whether two KeyboardState instances are not equal. More... | |
| static void | ValidateOffset (int offset, bool ScanCode) |
Properties | |
| bool | this[Key key] [get] |
| Gets a System.Boolean indicating whether the specified OpenTK.Input.Key is pressed. More... | |
| bool | this[short code] [get] |
| Gets a System.Boolean indicating whether the specified OpenTK.Input.Key is pressed. More... | |
| bool | IsConnected [get, set] |
| Gets a System.Boolean indicating whether this keyboard is connected. More... | |
Encapsulates the state of a Keyboard device.
| override bool OpenTK.Input.KeyboardState.Equals | ( | object | obj | ) |
Compares to an object instance for equality.
| obj | The System.Object to compare to. |
| bool OpenTK.Input.KeyboardState.Equals | ( | KeyboardState | other | ) |
Compares two KeyboardState instances.
| other | The instance to compare two. |
| override int OpenTK.Input.KeyboardState.GetHashCode | ( | ) |
Generates a hashcode for the current instance.
| bool OpenTK.Input.KeyboardState.IsKeyDown | ( | Key | key | ) |
Gets a System.Boolean indicating whether this key is down.
| key | The OpenTK.Input.Key to check. |
| bool OpenTK.Input.KeyboardState.IsKeyDown | ( | short | code | ) |
Gets a System.Boolean indicating whether this scan code is down.
| code | The scan code to check. |
| bool OpenTK.Input.KeyboardState.IsKeyUp | ( | Key | key | ) |
Gets a System.Boolean indicating whether this key is up.
| key | The OpenTK.Input.Key to check. |
| bool OpenTK.Input.KeyboardState.IsKeyUp | ( | short | code | ) |
Gets a System.Boolean indicating whether this scan code is down.
| code | The scan code to check. |
|
static |
Checks whether two KeyboardState instances are not equal.
| left | A KeyboardState instance. |
| right | A KeyboardState instance. |
|
static |
Checks whether two KeyboardState instances are equal.
| left | A KeyboardState instance. |
| right | A KeyboardState instance. |
|
getset |
Gets a System.Boolean indicating whether this keyboard is connected.
|
get |
Gets a System.Boolean indicating whether the specified OpenTK.Input.Key is pressed.
| key | The OpenTK.Input.Key to check. |
|
get |
Gets a System.Boolean indicating whether the specified OpenTK.Input.Key is pressed.
| key | The OpenTK.Input.Key to check. |