Class Keyboard
Represents the keyboard device.
public static class Keyboard
- Inheritance
-
Keyboard
Properties
- Handler
Gets or sets handler.
- Modifiers
Gets the set of modifier keys currently pressed (Control, Alt, Shift, etc.).
- RawModifiers
Gets the set of raw modifier keys currently pressed (Control, Alt, Shift, etc.).
Methods
- GetKeyStates(Key)
Returns the state of the specified key.
- IsKeyDown(Key)
Returns whether or not the specified key is down.
- IsKeyDown(KeyStates)
Returns whether or not the specified key state is down.
- IsKeyToggled(Key)
Returns whether or not the specified key is toggled.
- IsKeyToggled(KeyStates)
Returns whether or not the specified key state is toggled.
- IsKeyUp(Key)
Returns whether or not the specified key is up.
- IsRepeatToRepeatCount(bool)
Converts
isRepeat
boolean to repeat count.
- IsValidKey(Key)
Gets whether specified key is valid for the current platform.