sdl2/generated/lib_sdl_gamecontroller
library
Functions
-
sdlGameControllerAddMapping(String? mappingString)
→ int
-
Add support for controllers that SDL is unaware of or to cause an existing
controller to have a different binding.
-
sdlGameControllerAddMappingsFromRw(Pointer<SdlRWops> rw, int freerw)
→ int
-
Load a set of Game Controller mappings from a seekable SDL data stream.
-
sdlGameControllerClose(Pointer<SdlGameController> gamecontroller)
→ void
-
Close a game controller previously opened with SDL_GameControllerOpen().
-
sdlGameControllerEventState(int state)
→ int
-
Query or change current state of Game Controller events.
-
sdlGameControllerFromInstanceId(int joyid)
→ Pointer<SdlGameController>
-
Get the SDL_GameController associated with an instance id.
-
sdlGameControllerFromPlayerIndex(int playerIndex)
→ Pointer<SdlGameController>
-
Get the SDL_GameController associated with a player index.
-
sdlGameControllerGetAppleSfSymbolsNameForAxis(Pointer<SdlGameController> gamecontroller, int axis)
→ String?
-
Return the sfSymbolsName for a given axis on a game controller on Apple
platforms.
-
sdlGameControllerGetAppleSfSymbolsNameForButton(Pointer<SdlGameController> gamecontroller, int button)
→ String?
-
Return the sfSymbolsName for a given button on a game controller on Apple
platforms.
-
sdlGameControllerGetAttached(Pointer<SdlGameController> gamecontroller)
→ bool
-
Check if a controller has been opened and is currently connected.
-
sdlGameControllerGetAxis(Pointer<SdlGameController> gamecontroller, int axis)
→ int
-
Get the current state of an axis control on a game controller.
-
sdlGameControllerGetAxisFromString(String? str)
→ int
-
Convert a string into SDL_GameControllerAxis enum.
-
sdlGameControllerGetBindForAxis(Pointer<SdlGameController> gamecontroller, int axis)
→ SdlGameControllerButtonBind
-
Get the SDL joystick layer binding for a controller axis mapping.
-
sdlGameControllerGetBindForButton(Pointer<SdlGameController> gamecontroller, int button)
→ SdlGameControllerButtonBind
-
Get the SDL joystick layer binding for a controller button mapping.
-
sdlGameControllerGetButton(Pointer<SdlGameController> gamecontroller, int button)
→ int
-
Get the current state of a button on a game controller.
-
sdlGameControllerGetButtonFromString(String? str)
→ int
-
Convert a string into an SDL_GameControllerButton enum.
-
sdlGameControllerGetFirmwareVersion(Pointer<SdlGameController> gamecontroller)
→ int
-
Get the firmware version of an opened controller, if available.
-
sdlGameControllerGetJoystick(Pointer<SdlGameController> gamecontroller)
→ Pointer<SdlJoystick>
-
Get the Joystick ID from a Game Controller.
-
sdlGameControllerGetNumTouchpadFingers(Pointer<SdlGameController> gamecontroller, int touchpad)
→ int
-
Get the number of supported simultaneous fingers on a touchpad on a game
controller.
-
sdlGameControllerGetNumTouchpads(Pointer<SdlGameController> gamecontroller)
→ int
-
Get the number of touchpads on a game controller.
-
sdlGameControllerGetPlayerIndex(Pointer<SdlGameController> gamecontroller)
→ int
-
Get the player index of an opened game controller.
-
sdlGameControllerGetProduct(Pointer<SdlGameController> gamecontroller)
→ int
-
Get the USB product ID of an opened controller, if available.
-
sdlGameControllerGetProductVersion(Pointer<SdlGameController> gamecontroller)
→ int
-
Get the product version of an opened controller, if available.
-
sdlGameControllerGetSensorData(Pointer<SdlGameController> gamecontroller, int type, Pointer<Float> data, int numValues)
→ int
-
Get the current state of a game controller sensor.
-
sdlGameControllerGetSensorDataRate(Pointer<SdlGameController> gamecontroller, int type)
→ double
-
Get the data rate (number of events per second) of a game controller
sensor.
-
sdlGameControllerGetSensorDataWithTimestamp(Pointer<SdlGameController> gamecontroller, int type, Pointer<Uint64> timestamp, Pointer<Float> data, int numValues)
→ int
-
Get the current state of a game controller sensor with the timestamp of the
last update.
-
sdlGameControllerGetSerial(Pointer<SdlGameController> gamecontroller)
→ String?
-
Get the serial number of an opened controller, if available.
-
sdlGameControllerGetSteamHandle(Pointer<SdlGameController> gamecontroller)
→ int
-
Get the Steam Input handle of an opened controller, if available.
-
sdlGameControllerGetStringForAxis(int axis)
→ String?
-
Convert from an SDL_GameControllerAxis enum to a string.
-
sdlGameControllerGetStringForButton(int button)
→ String?
-
Convert from an SDL_GameControllerButton enum to a string.
-
sdlGameControllerGetTouchpadFinger(Pointer<SdlGameController> gamecontroller, int touchpad, int finger, Pointer<Uint8> state, Pointer<Float> x, Pointer<Float> y, Pointer<Float> pressure)
→ int
-
Get the current state of a finger on a touchpad on a game controller.
-
sdlGameControllerGetType(Pointer<SdlGameController> gamecontroller)
→ int
-
Get the type of this currently opened controller
-
sdlGameControllerGetVendor(Pointer<SdlGameController> gamecontroller)
→ int
-
Get the USB vendor ID of an opened controller, if available.
-
sdlGameControllerHasAxis(Pointer<SdlGameController> gamecontroller, int axis)
→ bool
-
Query whether a game controller has a given axis.
-
sdlGameControllerHasButton(Pointer<SdlGameController> gamecontroller, int button)
→ bool
-
Query whether a game controller has a given button.
-
sdlGameControllerHasLed(Pointer<SdlGameController> gamecontroller)
→ bool
-
Query whether a game controller has an LED.
-
sdlGameControllerHasRumble(Pointer<SdlGameController> gamecontroller)
→ bool
-
Query whether a game controller has rumble support.
-
sdlGameControllerHasRumbleTriggers(Pointer<SdlGameController> gamecontroller)
→ bool
-
Query whether a game controller has rumble support on triggers.
-
sdlGameControllerHasSensor(Pointer<SdlGameController> gamecontroller, int type)
→ bool
-
Return whether a game controller has a particular sensor.
-
sdlGameControllerIsSensorEnabled(Pointer<SdlGameController> gamecontroller, int type)
→ bool
-
Query whether sensor data reporting is enabled for a game controller.
-
sdlGameControllerMapping(Pointer<SdlGameController> gamecontroller)
→ Pointer<Int8>
-
Get the current mapping of a Game Controller.
-
sdlGameControllerMappingForDeviceIndex(int joystickIndex)
→ Pointer<Int8>
-
Get the mapping of a game controller.
-
sdlGameControllerMappingForGuid(SdlGuid guid)
→ Pointer<Int8>
-
Get the game controller mapping string for a given GUID.
-
sdlGameControllerMappingForIndex(int mappingIndex)
→ Pointer<Int8>
-
Get the mapping at a particular index.
-
sdlGameControllerName(Pointer<SdlGameController> gamecontroller)
→ String?
-
Get the implementation-dependent name for an opened game controller.
-
sdlGameControllerNameForIndex(int joystickIndex)
→ String?
-
Get the implementation dependent name for the game controller.
-
sdlGameControllerNumMappings()
→ int
-
Get the number of mappings installed.
-
sdlGameControllerOpen(int joystickIndex)
→ Pointer<SdlGameController>
-
Open a game controller for use.
-
sdlGameControllerPath(Pointer<SdlGameController> gamecontroller)
→ String?
-
Get the implementation-dependent path for an opened game controller.
-
sdlGameControllerPathForIndex(int joystickIndex)
→ String?
-
Get the implementation dependent path for the game controller.
-
sdlGameControllerRumble(Pointer<SdlGameController> gamecontroller, int lowFrequencyRumble, int highFrequencyRumble, int durationMs)
→ int
-
Start a rumble effect on a game controller.
-
sdlGameControllerRumbleTriggers(Pointer<SdlGameController> gamecontroller, int leftRumble, int rightRumble, int durationMs)
→ int
-
Start a rumble effect in the game controller's triggers.
-
sdlGameControllerSendEffect(Pointer<SdlGameController> gamecontroller, Pointer<NativeType> data, int size)
→ int
-
Send a controller specific effect packet
-
sdlGameControllerSetLed(Pointer<SdlGameController> gamecontroller, int red, int green, int blue)
→ int
-
Update a game controller's LED color.
-
sdlGameControllerSetPlayerIndex(Pointer<SdlGameController> gamecontroller, int playerIndex)
→ void
-
Set the player index of an opened game controller.
-
sdlGameControllerSetSensorEnabled(Pointer<SdlGameController> gamecontroller, int type, bool enabled)
→ int
-
Set whether data reporting for a game controller sensor is enabled.
-
sdlGameControllerTypeForIndex(int joystickIndex)
→ int
-
Get the type of a game controller.
-
sdlGameControllerUpdate()
→ void
-
Manually pump game controller updates if not using the loop.
-
sdlIsGameController(int joystickIndex)
→ bool
-
Check if the given joystick is supported by the game controller interface.