Enum gilrs::MappingSource
source · pub enum MappingSource {
SdlMappings,
Driver,
None,
}
Expand description
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§
source§impl Clone for MappingSource
impl Clone for MappingSource
source§fn clone(&self) -> MappingSource
fn clone(&self) -> MappingSource
Returns a copy 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 MappingSource
impl Debug for MappingSource
source§impl PartialEq for MappingSource
impl PartialEq for MappingSource
source§fn eq(&self, other: &MappingSource) -> bool
fn eq(&self, other: &MappingSource) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for MappingSource
impl Eq for MappingSource
impl StructuralEq for MappingSource
impl StructuralPartialEq for MappingSource
Auto Trait Implementations§
impl RefUnwindSafe for MappingSource
impl Send for MappingSource
impl Sync for MappingSource
impl Unpin for MappingSource
impl UnwindSafe for MappingSource
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