Struct cuivre::input::KeyState [−][src]
pub struct KeyState { /* fields omitted */ }
Represents the current state of a keyboard key or mouse button.
Methods
impl KeyState
[src]
impl KeyState
pub fn down(&self) -> bool
[src]
pub fn down(&self) -> bool
Is the key currently held down?
pub fn up(&self) -> bool
[src]
pub fn up(&self) -> bool
Is the key currently up?
pub fn pressed(&self) -> bool
[src]
pub fn pressed(&self) -> bool
Did the key go from up to down this frame?
pub fn released(&self) -> bool
[src]
pub fn released(&self) -> bool
Did the key go from down to up this frame?