Crate piston_window::prelude::input
source · Expand description
A flexible structure for user interactions to be used in window frameworks and widgets libraries.
Modules§
- Back-end agnostic controller events.
- Event identifiers.
- Trait for generic events
- Back-end agnostic keyboard keys.
- Back-end agnostic mouse buttons.
Structs§
- After render arguments.
- Button arguments.
- Close arguments.
- Components of a controller axis move event. Not guaranteed consistent across backends.
- Components of a controller button event. Not guaranteed consistent across backends.
- Components of a controller hat move event (d-Pad).
- Idle arguments, such as expected idle time in seconds.
- Render arguments.
- Resize arguments.
- Touch arguments
- Update arguments, such as delta time in seconds.
Enums§
- Models different kinds of buttons.
- Stores button state.
- Models all events.
- Models dragging and dropping files.
- Stores controller hat state.
- Models input events.
- Represent a keyboard key. Keycodes follows SDL http://wiki.libsdl.org/SDLKeycodeLookup
- Models loop events.
- Models different kinds of motion.
- Represent a mouse button.
- Stores the touch state.
Traits§
- After rendering and buffers are swapped.
- Changed button state.
- Window is closing.
- The position of a controller axis changed.
- When window gets or loses cursor.
- When window gets or loses focus.
- Implemented by all events.
- When background tasks should be performed.
- The position of the mouse cursor.
- The relative movement of mouse cursor.
- The scroll of the mouse wheel.
- The press of a button.
- The release of a button.
- When the next frame should be rendered.
- When the window is resized.
- When receiving text from user, such as typing a character.
- When a touch is started, moved, ended or cancelled.
- When the application state should be updated.
Type Aliases§
- The type of time stamp.