Module sdl2::controller [] [src]

Structs

GameController

Wrapper around the SDL_GameController object

Enums

Axis
Button
MappingStatus

Possible return values for add_mapping

Functions

add_mapping

Add a new mapping from a mapping string

get_event_state

Return true if controller events are processed.

is_game_controller

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

mapping_for_guid
name_for_index

Return the name of the controller at index id

set_event_state

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

update

Force controller update when not using the event loop

wrap_controller_axis
wrap_controller_button