Struct sdl2::GameControllerSubsystem [] [src]

pub struct GameControllerSubsystem { /* fields omitted */ }

Methods

impl GameControllerSubsystem
[src]

[src]

Retreive the total number of attached joysticks and controllers identified by SDL.

[src]

Return true if the joystick at index joystick_index is a game controller.

[src]

Attempt to open the controller ad index joystick_index and return it. Controller IDs are the same as joystick IDs and the maximum number can be retreived using the SDL_NumJoysticks function.

[src]

Return the name of the controller at index joystick_index.

[src]

If state is true controller events are processed, otherwise they're ignored.

[src]

Return true if controller events are processed.

[src]

Add a new mapping from a mapping string

[src]

Load mappings from a file

[src]

[src]

Force controller update when not using the event loop

impl GameControllerSubsystem
[src]

[src]

Obtain an SDL context.

Trait Implementations

impl Debug for GameControllerSubsystem
[src]

[src]

Formats the value using the given formatter.

impl Clone for GameControllerSubsystem
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more