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]

[src]

Creates new Mapping.

[src]

Returns EvCode associated with button index.

[src]

Returns EvCode associated with axis index.

[src]

Inserts new button mapping.

[src]

Inserts new axis mapping.

[src]

Removes button and returns associated NativEvCode.

[src]

Removes axis and returns associated NativEvCode.

Trait Implementations

impl Debug for MappingData
[src]

[src]

Formats the value using the given formatter.

impl Clone for MappingData
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more