pub struct Gamepad {
pub connected: bool,
pub standard: bool,
pub buttons: Vec<f32>,
pub axes: Vec<f32>,
}Expand description
Raw gamepad or joystick. With standard, W3C order: buttons 0 south, 1 east,
2 west, 3 north, 4/5 shoulders, 6/7 triggers, 8 select, 9 start, 10/11 sticks,
12-15 d-pad, 16 home; axes 0/1 left stick, 2/3 right stick (y > 0 = down).
Fields§
§connected: bool§standard: bool§axes: Vec<f32>Trait Implementations§
impl StructuralPartialEq for Gamepad
Auto Trait Implementations§
impl Freeze for Gamepad
impl RefUnwindSafe for Gamepad
impl Send for Gamepad
impl Sync for Gamepad
impl Unpin for Gamepad
impl UnsafeUnpin for Gamepad
impl UnwindSafe for Gamepad
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