#[non_exhaustive]#[repr(i32)]pub enum GamepadContact {
LeftStick = 0,
RightStick = 1,
LeftTrigger = 2,
RightTrigger = 3,
}Expand description
Gamepad contact (analog stick or trigger) for touch mapping.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
LeftStick = 0
Left analog stick: x/y range -32768~32767
RightStick = 1
Right analog stick: x/y range -32768~32767
LeftTrigger = 2
Left trigger: pressure 0~255
RightTrigger = 3
Right trigger: pressure 0~255
Trait Implementations§
Source§impl Clone for GamepadContact
impl Clone for GamepadContact
Source§fn clone(&self) -> GamepadContact
fn clone(&self) -> GamepadContact
Returns a duplicate of the value. Read more
1.0.0 · 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 GamepadContact
impl Debug for GamepadContact
Source§impl Hash for GamepadContact
impl Hash for GamepadContact
Source§impl PartialEq for GamepadContact
impl PartialEq for GamepadContact
impl Copy for GamepadContact
impl Eq for GamepadContact
impl StructuralPartialEq for GamepadContact
Auto Trait Implementations§
impl Freeze for GamepadContact
impl RefUnwindSafe for GamepadContact
impl Send for GamepadContact
impl Sync for GamepadContact
impl Unpin for GamepadContact
impl UnwindSafe for GamepadContact
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