diff options
| author | 2021-11-14 10:45:07 -0600 | |
|---|---|---|
| committer | 2021-11-24 20:30:28 -0600 | |
| commit | bca299e8e0489867f7d4bbfd264e221e7e61ae1e (patch) | |
| tree | 312f145bfcaffa9b7ecc2710443fa3737bf379e4 /src/input_common/drivers/keyboard.h | |
| parent | core/hid: Improve accuracy of the keyboard implementation (diff) | |
| download | yuzu-bca299e8e0489867f7d4bbfd264e221e7e61ae1e.tar.gz yuzu-bca299e8e0489867f7d4bbfd264e221e7e61ae1e.tar.xz yuzu-bca299e8e0489867f7d4bbfd264e221e7e61ae1e.zip | |
input_common: Allow keyboard to be backwards compatible
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(); |