Module piston::input
[−]
Modules
generic_event |
Trait for generic events |
joystick |
Back-end agnostic joystick events. |
keyboard |
Back-end agnostic keyboard keys. |
mouse |
Back-end agnostic mouse buttons. |
Structs
AfterRenderArgs |
After render arguments. |
EventId |
Used to identify events arguments provided by traits. |
IdleArgs |
Idle arguments, such as expected idle time in seconds. |
JoystickAxisArgs |
Components of a joystick axis move event. Not guaranteed consistent across backends. |
JoystickButton |
Components of a joystick button event. Not guaranteed consistent across backends. |
RenderArgs |
Render arguments |
UpdateArgs |
Update arguments, such as delta time in seconds |
Enums
Button |
Models different kinds of buttons. |
Event |
Adds render and update events to input events |
Input |
Models input events. |
Key |
Represent a keyboard key. Keycodes follows SDL http://wiki.libsdl.org/SDLKeycodeLookup |
Motion |
Models different kinds of motion. |
MouseButton |
Represent a mouse button. |
Traits
AfterRenderEvent |
After rendering and buffers are swapped. |
CursorEvent |
When window gets or loses cursor |
FocusEvent |
When window gets or loses focus |
GenericEvent |
Implemented by all events |
IdleEvent |
When background tasks should be performed |
JoystickAxisEvent |
The position of a joystick axis changed. |
MouseCursorEvent |
The position of the mouse cursor |
MouseRelativeEvent |
The relative movement of mouse cursor |
MouseScrollEvent |
The scroll of the mouse wheel |
PressEvent |
The press of a button |
ReleaseEvent |
The release of a button |
RenderEvent |
When the next frame should be rendered |
ResizeEvent |
When the window is resized |
TextEvent |
When receiving text from user, such as typing a character |
UpdateEvent |
When the application state should be updated |