The KeyboardState type exposes the following members.
Properties
Name | Description | |
---|---|---|
![]() | CapsLock |
Gets whether or not the caps lock is enabled.
|
![]() ![]() | Empty | |
![]() | KeyChars |
Returns all the pressed characters.
For example if the KeyCodes property contains SHIFT and A, this property will return 'A'
or if the KeyCodes property contains CTRL, ALT and Q, this property will return '@'
on a german keyboard.
|
![]() | KeyCodes |
Returns all the pressed keys.
|
![]() | Modifiers |
Returns all the pressed modifier keys in one enumeration.
|
![]() | Time |
Used to distinguish two keyboard states if they contain the same same key codes.
Useful if a key is pressed for a long time which should generate repeated key strokes.
|