Struct sdl2::JoystickSubsystem [] [src]

pub struct JoystickSubsystem { /* fields omitted */ }

Methods

impl JoystickSubsystem
[src]

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

Attempt to open the joystick at number id and return it.

Return the name of the joystick at index id

Get the GUID for the joystick number id

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

Return true if joystick events are processed.

Force joystick update when not using the event loop

impl JoystickSubsystem
[src]

Obtain an SDL context.

Trait Implementations

impl Debug for JoystickSubsystem
[src]

Formats the value using the given formatter.

impl Clone for JoystickSubsystem
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more