Struct gilrs::Mapping[][src]

pub struct Mapping { /* fields omitted */ }

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.

Methods

impl MappingData
[src]

Creates new Mapping.

Returns EvCode associated with button index.

Returns EvCode associated with axis index.

Inserts new button mapping.

Inserts new axis mapping.

Removes button and returns associated NativEvCode.

Removes axis and returns associated NativEvCode.

Trait Implementations

impl Debug for MappingData
[src]

Formats the value using the given formatter. Read more

impl Clone for MappingData
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl Send for Mapping

impl Sync for Mapping