Enum radiant_rs::InputState[][src]

pub enum InputState {
    Up,
    Pressed,
    Down,
    Released,
    Repeat,
}

The current state of a key or mousebutton.

Variants

The key is not currently pressed.

The key was just pressed. This state is reported only once per key-press.

The key has been pressed and is still being held down.

The key has just been released. This state is reported only once per key-release.

The key is still being held down. When used as text-input, a letter repeat is expected.

Trait Implementations

impl Debug for InputState
[src]

Formats the value using the given formatter. Read more

impl PartialEq for InputState
[src]

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

This method tests for !=.

impl Copy for InputState
[src]

impl Clone for InputState
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl Send for InputState

impl Sync for InputState