Struct sdl2::JoystickSubsystem[][src]

pub struct JoystickSubsystem { /* fields omitted */ }

Methods

impl JoystickSubsystem
[src]

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

Attempt to open the joystick at index joystick_index and return it.

Return the name of the joystick at index joystick_index.

Get the GUID for the joystick at index joystick_index

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. Read more

impl Clone for JoystickSubsystem
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations