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]
impl Debug for InputState
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for InputState
[src]
impl PartialEq for InputState
fn eq(&self, other: &InputState) -> bool
[src]
fn eq(&self, other: &InputState) -> bool
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]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]This method tests for !=
.
impl Copy for InputState
[src]
impl Copy for InputState
impl Clone for InputState
[src]
impl Clone for InputState
fn clone(&self) -> InputState
[src]
fn clone(&self) -> InputState
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl Send for InputState
impl Send for InputState
impl Sync for InputState
impl Sync for InputState