Encapsulates the state of a Keyboard device. More...
Public Types | |
| enum | BitValue { Zero = 0, One = 1 } |
Public Member Functions | |
| bool | IsKeyDown (Key key) |
| Gets a System.Boolean indicating whether this key is down. | |
| bool | IsKeyUp (Key key) |
| Gets a System.Boolean indicating whether this key is up. | |
| internal int | ReadBit (int offset) |
| internal void | WriteBit (int offset, BitValue bit) |
| bool | Equals (KeyboardState other) |
| Compares two KeyboardState instances. | |
Public Attributes | |
| const int | NumKeys = ((int)Key.LastKey + 16) / 32 |
Encapsulates the state of a Keyboard device.
Definition at line 37 of file KeyboardState.cs.
| bool OpenTK.Input.KeyboardState.Equals | ( | KeyboardState | other | ) |
Compares two KeyboardState instances.
| other | The instance to compare two. |
Definition at line 98 of file KeyboardState.cs.
| bool OpenTK.Input.KeyboardState.IsKeyDown | ( | Key | key | ) |
Gets a System.Boolean indicating whether this key is down.
| key | The OpenTK.Input.Key to check. |
Definition at line 58 of file KeyboardState.cs.
| bool OpenTK.Input.KeyboardState.IsKeyUp | ( | Key | key | ) |
Gets a System.Boolean indicating whether this key is up.
| key | The OpenTK.Input.Key to check. |
Definition at line 67 of file KeyboardState.cs.
1.6.1