#[repr(i8)]pub enum DPadY {
Up = -1,
Neutral = 0,
Down = 1,
}Expand description
Where the d-pad points up or down, as a number to add to a coordinate.
Variants§
Up = -1
Up, negative because screen coordinates grow downwards.
Neutral = 0
Neither, or both at once.
Down = 1
Down.
Trait Implementations§
impl Copy for DPadY
impl Eq for DPadY
impl StructuralPartialEq for DPadY
Auto Trait Implementations§
impl BankSafe for DPadY
impl Freeze for DPadY
impl RefUnwindSafe for DPadY
impl Send for DPadY
impl Sync for DPadY
impl Unpin for DPadY
impl UnsafeUnpin for DPadY
impl UnwindSafe for DPadY
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