simvx.core.input.events¶
Input binding and event types.
Module Contents¶
Classes¶
A single input binding — maps to a key, mouse button, or gamepad input. |
|
Keyboard input event with rich metadata. |
|
Mouse button input event. |
API¶
- class simvx.core.input.events.InputBinding[source]¶
A single input binding — maps to a key, mouse button, or gamepad input.
- key: simvx.core.input.enums.Key | None¶
None
- mouse_button: simvx.core.input.enums.MouseButton | None¶
None
- joy_button: simvx.core.input.enums.JoyButton | None¶
None
- joy_axis: simvx.core.input.enums.JoyAxis | None¶
None
- joy_axis_positive: bool¶
True
- deadzone: float¶
0.2
- class simvx.core.input.events.InputEventKey(key: simvx.core.input.enums.Key, pressed: bool, echo: bool = False, shift: bool = False, ctrl: bool = False, alt: bool = False)[source]¶
Keyboard input event with rich metadata.
Initialization
- __slots__¶
(‘key’, ‘pressed’, ‘echo’, ‘shift’, ‘ctrl’, ‘alt’, ‘handled’)
- class simvx.core.input.events.InputEventMouse(button: simvx.core.input.enums.MouseButton, pressed: bool, position: tuple[float, float] = (0.0, 0.0), shift: bool = False, ctrl: bool = False, alt: bool = False)[source]¶
Mouse button input event.
Initialization
- __slots__¶
(‘button’, ‘pressed’, ‘position’, ‘shift’, ‘ctrl’, ‘alt’, ‘handled’)