Modules§
Structs§
Enums§
- Event
- Inhibit
Event - Works only on windows. Whether to propagate the event for applications down the callstack.
- Keyboard
- Mouse
- State
- Whether given button is now Pressed or Released. Send in some version of the callbacks.
Functions§
- are_
pressed - Returns whether given key sequence is currently pressed down, this may be a single key.
- bind_
any_ button - Same as
bind_any_key
but for mouse buttons. - bind_
any_ key - Install any key handler that will be invoked on any key presses.
- bind_
button - Same as
bind_key
but for mouse buttons. - bind_
key - Install any key handler that will be invoked on specified key presses.
- enable_
debug - get_
state - Returns the state, it has to be set beforehand with the set otherwise will be returned empty.
- load_
config - print_
pressed_ state - register_
hotkey - Allows for registering an action that will be triggered when sequence of buttons is pressed. callback will be invoked whenever last key of the sequence is pressed.
- remove_
any_ button_ bind - Same as
remove_any_key_bind
but for mouse buttons. - remove_
any_ key_ bind - Removes global key handler.
- remove_
button_ bind - Same as
remove_key_bind
but for mouse buttons. - remove_
key_ bind - Removes specific key bind.
- set_
state - Allows storing some kind of state within the library, Generally not that useful but allows for some more complicated logic using yaml load.
- unregister_
hotkey - Unregisters hotkey, a original sequence has to be passed as parameter..