Struct r0ket_l0dable::input::InputState
[−]
[src]
pub struct InputState(pub u8);
Wraps the input state
Methods
impl InputState
[src]
pub fn up(&self) -> bool
[src]
Pushed in the up direction?
pub fn down(&self) -> bool
[src]
Pushed in the down direction?
pub fn left(&self) -> bool
[src]
Pushed in the left direction?
pub fn right(&self) -> bool
[src]
Pushed in the right direction?
pub fn enter(&self) -> bool
[src]
Pressed in?