Enum input::Input [] [src]

pub enum Input {
    Button(ButtonArgs),
    Move(Motion),
    Text(String),
    Resize(u32u32),
    Focus(bool),
    Cursor(bool),
    Close(CloseArgs),
}

Models input events.

Variants

Changed button state.

Moved mouse cursor.

Text (usually from keyboard).

Window got resized.

Window gained or lost focus.

Window gained or lost cursor.

Window closed.

Trait Implementations

impl Clone for Input
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Input
[src]

Formats the value using the given formatter.

impl PartialEq for Input
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl From<ButtonArgs> for Input
[src]

Performs the conversion.

impl From<ControllerAxisArgs> for Input
[src]

Performs the conversion.

impl From<TouchArgs> for Input
[src]

Performs the conversion.

impl From<Motion> for Input
[src]

Performs the conversion.

impl From<CloseArgs> for Input
[src]

Performs the conversion.