Struct gilrs::GilrsBuilder[][src]

pub struct GilrsBuilder { /* fields omitted */ }
Expand description

Allow to create Gilrs with customized behaviour.

Implementations

Create builder with default settings. Use build() to create Gilrs.

If true, use axis_dpad_to_button, Jitter and deadzone filters with default parameters. Defaults to true.

Adds SDL mappings.

If true, will add SDL mappings from SDL_GAMECONTROLLERCONFIG environment variable. Defaults to true.

If true, will add SDL mappings included from https://github.com/gabomdq/SDL_GameControllerDB. Defaults to true.

Sets values on which ButtonPressed and ButtonReleased events will be emitted. build() will return error if pressed ≤ released or if one of values is outside [0.0, 1.0].

Defaults to 0.75 for pressed and 0.65 for released.

Disable or enable automatic state updates. You should use this if you use custom filters; in this case you have to update state manually anyway.

Creates Gilrs.

Trait Implementations

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.