Input Bind
Data class representing a key binding. It holds the key to be bound and the action that will be triggered by the binding.
Parameters
The key that is bound to an action.
The action triggered by the bound key (e.g., TOGGLE, HOLD).
Constructors
Alternative constructor to create a binding from the key type and key code.
Constructor to create a binding using a key name.
Types
Functions
Handles the event. Returns the new state, assumes the original state is false.
Determines if the specified key matches the bound key.
Determines if a keyboard press event matches this bind key and required modifiers.
Determines if a keyboard release affects this bind key or one of its required modifiers.
Determines if the given modifiers match the required modifiers.
Determines if the specified mouse button code matches the bound key.
Determines if a mouse press event matches this bind button and required modifiers.
Determines if a mouse release affects this bind button or one of its required modifiers.