#[repr(i8)]pub enum DPadX {
Left = -1,
Neutral = 0,
Right = 1,
}Expand description
Where the d-pad points left or right, as a number to add to a coordinate.
ⓘ
x = x.wrapping_add_signed(pad.pressed.x() as i8 * SPEED);Variants§
Left = -1
Left, negative because screen coordinates grow to the right.
Neutral = 0
Neither, or both at once.
Right = 1
Right.
Trait Implementations§
impl Copy for DPadX
impl Eq for DPadX
impl StructuralPartialEq for DPadX
Auto Trait Implementations§
impl BankSafe for DPadX
impl Freeze for DPadX
impl RefUnwindSafe for DPadX
impl Send for DPadX
impl Sync for DPadX
impl Unpin for DPadX
impl UnsafeUnpin for DPadX
impl UnwindSafe for DPadX
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