Struct gilrs::Mapping [−][src]
pub struct Mapping { /* fields omitted */ }
Expand description
Stores data used to map gamepad buttons and axes.
After you add all mappings, use
Gamepad::set_mapping(…)
to change mapping of
existing gamepad.
See examples/mapping.rs
for more detailed example.
Implementations
Returns EvCode
associated with button index.
Inserts new button mapping.
Removes button and returns associated NativEvCode
.
Removes axis and returns associated NativEvCode
.
Trait Implementations
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for MappingData
impl Send for MappingData
impl Sync for MappingData
impl Unpin for MappingData
impl UnwindSafe for MappingData
Blanket Implementations
Mutably borrows from an owned value. Read more