diff options
author | german77 <juangerman-13@hotmail.com> | 2021-11-14 10:45:07 -0600 |
---|---|---|
committer | Narr the Reg <juangerman-13@hotmail.com> | 2021-11-24 20:30:28 -0600 |
commit | bca299e8e0489867f7d4bbfd264e221e7e61ae1e (patch) | |
tree | 312f145bfcaffa9b7ecc2710443fa3737bf379e4 /src/input_common/drivers/keyboard.h | |
parent | b673857d7dfc72f38d9242b315cd590b859795ff (diff) |
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 2ab92fd6c2..ad123b1368 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(); |