#[repr(u8)]pub enum Ds4Dpad {
North = 0,
NorthEast = 1,
East = 2,
SouthEast = 3,
South = 4,
SouthWest = 5,
West = 6,
NorthWest = 7,
Neutral = 8,
}Expand description
Represents the state of the D-Pad on a virtual DualShock 4 controller.
Unlike the main buttons, the D-Pad is represented by a single value, not a bitmask.
The Ds4Report struct provides a helper method set_dpad to correctly apply this state.
Variants§
North = 0
NorthEast = 1
East = 2
SouthEast = 3
South = 4
SouthWest = 5
West = 6
NorthWest = 7
Neutral = 8
Trait Implementations§
impl Copy for Ds4Dpad
impl Eq for Ds4Dpad
impl StructuralPartialEq for Ds4Dpad
Auto Trait Implementations§
impl Freeze for Ds4Dpad
impl RefUnwindSafe for Ds4Dpad
impl Send for Ds4Dpad
impl Sync for Ds4Dpad
impl Unpin for Ds4Dpad
impl UnwindSafe for Ds4Dpad
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