pub struct GamepadPad {
pub name: String,
pub pressed: HashSet<GamepadButton>,
pub axes: HashMap<GamepadAxis, f32>,
}Expand description
Live state of one connected gamepad, mirrored from GamepadEvents.
Fields§
§name: String§pressed: HashSet<GamepadButton>§axes: HashMap<GamepadAxis, f32>Implementations§
Source§impl GamepadPad
impl GamepadPad
pub fn axis(&self, axis: GamepadAxis) -> f32
Trait Implementations§
Source§impl Clone for GamepadPad
impl Clone for GamepadPad
Source§fn clone(&self) -> GamepadPad
fn clone(&self) -> GamepadPad
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 GamepadPad
impl Debug for GamepadPad
Source§impl Default for GamepadPad
impl Default for GamepadPad
Source§fn default() -> GamepadPad
fn default() -> GamepadPad
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for GamepadPad
impl RefUnwindSafe for GamepadPad
impl Send for GamepadPad
impl Sync for GamepadPad
impl Unpin for GamepadPad
impl UnsafeUnpin for GamepadPad
impl UnwindSafe for GamepadPad
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