-
Notifications
You must be signed in to change notification settings - Fork 1
Keyboard
leoarayav edited this page Jun 12, 2022
·
1 revision
The Keyboard class contains methods for controlling/manipulating the keyboard.
class cornelius.Keyboard
-
Press any key
Parameters
- key (int): Key to press
Raises
- InvalidKeyException (CorneliusException): If key is not str or int
Returns -> None
-
Release any key
Parameters
- key (int): Key to release
Raises
- InvalidKeyException (CorneliusException): If key is not str or int
Returns -> None
-
Check if a key is pressed.
Parameters
- key (int): Key to check
Raises
- TypeError (Exception): If key is not str or int
Returns
- True: If the key is pressed
- False: Otherwise