#[non_exhaustive]#[repr(u64)]pub enum GamepadType {
Xbox360 = 0,
DualShock4 = 1,
}Expand description
Virtual gamepad type for GamepadController.
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.
Xbox360 = 0
Microsoft Xbox 360 Controller (wired)
DualShock4 = 1
Sony DualShock 4 Controller (wired)
Trait Implementations§
Source§impl Clone for GamepadType
impl Clone for GamepadType
Source§fn clone(&self) -> GamepadType
fn clone(&self) -> GamepadType
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 GamepadType
impl Debug for GamepadType
Source§impl Hash for GamepadType
impl Hash for GamepadType
Source§impl PartialEq for GamepadType
impl PartialEq for GamepadType
impl Copy for GamepadType
impl Eq for GamepadType
impl StructuralPartialEq for GamepadType
Auto Trait Implementations§
impl Freeze for GamepadType
impl RefUnwindSafe for GamepadType
impl Send for GamepadType
impl Sync for GamepadType
impl Unpin for GamepadType
impl UnwindSafe for GamepadType
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