diff options
Diffstat (limited to 'src/input_common/drivers/keyboard.h')
| -rw-r--r-- | src/input_common/drivers/keyboard.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/input_common/drivers/keyboard.h b/src/input_common/drivers/keyboard.h index 2ab92fd6c..ad123b136 100644 --- a/src/input_common/drivers/keyboard.h +++ b/src/input_common/drivers/keyboard.h | |||
| @@ -29,10 +29,22 @@ public: | |||
| 29 | void ReleaseKey(int key_code); | 29 | void ReleaseKey(int key_code); |
| 30 | 30 | ||
| 31 | /** | 31 | /** |
| 32 | * Sets the status of the keyboard key to pressed | ||
| 33 | * @param key_index index of the key to press | ||
| 34 | */ | ||
| 35 | void PressKeyboardKey(int key_index); | ||
| 36 | |||
| 37 | /** | ||
| 38 | * Sets the status of the keyboard key to released | ||
| 39 | * @param key_index index of the key to release | ||
| 40 | */ | ||
| 41 | void ReleaseKeyboardKey(int key_index); | ||
| 42 | |||
| 43 | /** | ||
| 32 | * Sets the status of all keyboard modifier keys | 44 | * Sets the status of all keyboard modifier keys |
| 33 | * @param key_modifiers the code of the key to release | 45 | * @param key_modifiers the code of the key to release |
| 34 | */ | 46 | */ |
| 35 | void SetModifiers(int key_modifiers); | 47 | void SetKeyboardModifiers(int key_modifiers); |
| 36 | 48 | ||
| 37 | /// Sets all keys to the non pressed state | 49 | /// Sets all keys to the non pressed state |
| 38 | void ReleaseAllKeys(); | 50 | void ReleaseAllKeys(); |