[][src]Enum gilrs::MappingSource

pub enum MappingSource {
    SdlMappings,
    Driver,
    None,
}

Source of gamepad mappings.

Variants

SdlMappings

Gamepad uses SDL mappings.

Driver

Gamepad does not use any mappings but driver should provide unified controller layout.

None

Gamepad does not use any mappings and most gamepad events will probably be Button::Unknown or Axis::Unknown

Trait Implementations

impl Clone for MappingSource[src]

impl Copy for MappingSource[src]

impl Debug for MappingSource[src]

impl PartialEq<MappingSource> for MappingSource[src]

impl StructuralPartialEq for MappingSource[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.