Enum radiant_rs::InputState
[−]
[src]
pub enum InputState { Up, Pressed, Down, Released, Repeat, }
The current state of a key or mousebutton.
Variants
Up
The key is not currently pressed.
Pressed
The key was just pressed. This state is reported only once per key-press.
Down
The key has been pressed and is still being held down.
Released
The key has just been released. This state is reported only once per key-release.
Repeat
The key is still being held down. When used as text-input, a letter repeat is expected.
Trait Implementations
impl Debug for InputState
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl PartialEq for InputState
[src]
fn eq(&self, __arg_0: &InputState) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl Copy for InputState
[src]
impl Clone for InputState
[src]
fn clone(&self) -> InputState
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more