Struct sdl2::GameControllerSubsystem [] [src]

pub struct GameControllerSubsystem { /* fields omitted */ }

Methods

impl GameControllerSubsystem
[src]

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

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

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

Return the name of the controller at the given 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.

impl Clone for GameControllerSubsystem
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more