pub struct ControllerState {
pub joysticks: Joysticks,
pub buttons: Buttons,
}Expand description
Stores the current state of the controller; the joysticks and buttons.
Fields§
§joysticks: JoysticksAnalog joysticks state
Digital buttons state
Trait Implementations§
Source§impl Clone for ControllerState
impl Clone for ControllerState
Source§fn clone(&self) -> ControllerState
fn clone(&self) -> ControllerState
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 ControllerState
impl Debug for ControllerState
Source§impl PartialEq for ControllerState
impl PartialEq for ControllerState
impl Copy for ControllerState
impl StructuralPartialEq for ControllerState
Auto Trait Implementations§
impl Freeze for ControllerState
impl RefUnwindSafe for ControllerState
impl Send for ControllerState
impl Sync for ControllerState
impl Unpin for ControllerState
impl UnwindSafe for ControllerState
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