Struct sdl2::GameControllerSubsystem[][src]

pub struct GameControllerSubsystem { /* fields omitted */ }

Methods

impl GameControllerSubsystem
[src]

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

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

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 retrieved using the SDL_NumJoysticks function.

Return the name of the controller at index joystick_index.

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

Return true if controller events are processed.

Add a new mapping from a mapping string

Load mappings from a file

Force controller update when not using the event loop

impl GameControllerSubsystem
[src]

Obtain an SDL context.

Trait Implementations

impl Debug for GameControllerSubsystem
[src]

Formats the value using the given formatter. Read more

impl Clone for GameControllerSubsystem
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations