[][src]Crate input

A flexible structure for user interactions to be used in window frameworks and widgets libraries.

Re-exports

pub use mouse::MouseButton;
pub use keyboard::Key;
pub use controller::ControllerAxisArgs;
pub use controller::ControllerButton;
pub use controller::ControllerHat;
pub use controller::ControllerAxisEvent;
pub use generic_event::GenericEvent;
pub use mouse::MouseCursorEvent;
pub use mouse::MouseRelativeEvent;
pub use mouse::MouseScrollEvent;

Modules

controller

Back-end agnostic controller events.

event_id

Event identifiers.

generic_event

Trait for generic events

keyboard

Back-end agnostic keyboard keys.

mouse

Back-end agnostic mouse buttons.

Structs

AfterRenderArgs

After render arguments.

ButtonArgs

Button arguments.

CloseArgs

Close arguments.

IdleArgs

Idle arguments, such as expected idle time in seconds.

RenderArgs

Render arguments.

ResizeArgs

Resize arguments.

TouchArgs

Touch arguments

UpdateArgs

Update arguments, such as delta time in seconds.

Enums

Button

Models different kinds of buttons.

ButtonState

Stores button state.

Event

Models all events.

FileDrag

Models dragging and dropping files.

HatState

Stores controller hat state.

Input

Models input events.

Loop

Models loop events.

Motion

Models different kinds of motion.

Touch

Stores the touch state.

Traits

AfterRenderEvent

After rendering and buffers are swapped.

ButtonEvent

Changed button state.

CloseEvent

Window is closing.

CursorEvent

When window gets or loses cursor.

FocusEvent

When window gets or loses focus.

IdleEvent

When background tasks should be performed.

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.

TouchEvent

When a touch is started, moved, ended or cancelled.

UpdateEvent

When the application state should be updated.

Type Definitions

TimeStamp

The type of time stamp.