pub struct JoystickState(/* private fields */);Expand description
Represents the current state of an Atari 9-pin joystick.
Implementations§
Source§impl JoystickState
impl JoystickState
Sourcepub fn is_fire_pressed(&self) -> bool
pub fn is_fire_pressed(&self) -> bool
True if joystick has fire pressed.
Trait Implementations§
Source§impl Clone for JoystickState
impl Clone for JoystickState
Source§fn clone(&self) -> JoystickState
fn clone(&self) -> JoystickState
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for JoystickState
impl Debug for JoystickState
impl Copy for JoystickState
Auto Trait Implementations§
impl Freeze for JoystickState
impl RefUnwindSafe for JoystickState
impl Send for JoystickState
impl Sync for JoystickState
impl Unpin for JoystickState
impl UnwindSafe for JoystickState
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