Crate mki_fork

Source

Modules§

keyboard_mouse

Structs§

Action
Sequence
A sequence of events to execute.

Enums§

Event
InhibitEvent
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..