diff options
author | german77 <juangerman-13@hotmail.com> | 2021-11-14 17:45:07 +0100 |
---|---|---|
committer | Narr the Reg <juangerman-13@hotmail.com> | 2021-11-25 03:30:28 +0100 |
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 yuzu-bca299e8e0489867f7d4bbfd264e221e7e61ae1e.tar.gz yuzu-bca299e8e0489867f7d4bbfd264e221e7e61ae1e.tar.bz2 yuzu-bca299e8e0489867f7d4bbfd264e221e7e61ae1e.tar.lz yuzu-bca299e8e0489867f7d4bbfd264e221e7e61ae1e.tar.xz yuzu-bca299e8e0489867f7d4bbfd264e221e7e61ae1e.tar.zst yuzu-bca299e8e0489867f7d4bbfd264e221e7e61ae1e.zip |
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: void ReleaseKey(int key_code); /** + * Sets the status of the keyboard key to pressed + * @param key_index index of the key to press + */ + void PressKeyboardKey(int key_index); + + /** + * Sets the status of the keyboard key to released + * @param key_index index of the key to release + */ + void ReleaseKeyboardKey(int key_index); + + /** * Sets the status of all keyboard modifier keys * @param key_modifiers the code of the key to release */ - void SetModifiers(int key_modifiers); + void SetKeyboardModifiers(int key_modifiers); /// Sets all keys to the non pressed state void ReleaseAllKeys(); |