Struct sdl2::GameControllerSubsystem [−][src]
pub struct GameControllerSubsystem { /* fields omitted */ }
Implementations
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 at 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 controller input mapping from a mapping string.
Load controller input mappings from a file.
Load controller input mappings from a Read
object.
Load controller input mappings from an SDL RWops
object.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for GameControllerSubsystem
impl !Send for GameControllerSubsystem
impl !Sync for GameControllerSubsystem
impl Unpin for GameControllerSubsystem
impl !UnwindSafe for GameControllerSubsystem
Blanket Implementations
Mutably borrows from an owned value. Read more