pub struct Input;Implementations§
Source§impl Input
impl Input
pub fn get_stick_l() -> (f32, f32)
pub fn get_stick_r() -> (f32, f32)
pub fn is_connected() -> bool
pub fn get_touch() -> Option<(f32, f32)>
pub fn is_key_down(key: Key) -> bool
pub fn is_key_pressed(key: Key) -> bool
pub fn is_key_released(key: Key) -> bool
pub fn is_shift_down() -> bool
pub fn is_ctrl_down() -> bool
pub fn is_alt_down() -> bool
Auto Trait Implementations§
impl Freeze for Input
impl RefUnwindSafe for Input
impl Send for Input
impl Sync for Input
impl Unpin for Input
impl UnsafeUnpin for Input
impl UnwindSafe for Input
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more