SdlGamepadPointerEx extension

on

Methods

close() → void

Available on Pointer<SdlGamepad>, provided by the SdlGamepadPointerEx extension

Close a gamepad previously opened with SDL_OpenGamepad().
connected() bool

Available on Pointer<SdlGamepad>, provided by the SdlGamepadPointerEx extension

Check if a gamepad has been opened and is currently connected.
getAppleSfSymbolsNameForAxis(int axis) String?

Available on Pointer<SdlGamepad>, provided by the SdlGamepadPointerEx extension

Return the sfSymbolsName for a given axis on a gamepad on Apple platforms.
getAppleSfSymbolsNameForButton(int button) String?

Available on Pointer<SdlGamepad>, provided by the SdlGamepadPointerEx extension

Return the sfSymbolsName for a given button on a gamepad on Apple platforms.
getAxis(int axis) int

Available on Pointer<SdlGamepad>, provided by the SdlGamepadPointerEx extension

Get the current state of an axis control on a gamepad.
getBindings(Pointer<Int32> count) Pointer<Pointer<SdlGamepadBinding>>

Available on Pointer<SdlGamepad>, provided by the SdlGamepadPointerEx extension

Get the SDL joystick layer bindings for a gamepad.
getButton(int button) bool

Available on Pointer<SdlGamepad>, provided by the SdlGamepadPointerEx extension

Get the current state of a button on a gamepad.
getButtonLabel(int button) int

Available on Pointer<SdlGamepad>, provided by the SdlGamepadPointerEx extension

Get the label of a button on a gamepad.
getConnectionState() int

Available on Pointer<SdlGamepad>, provided by the SdlGamepadPointerEx extension

Get the connection state of a gamepad.
getFirmwareVersion() int

Available on Pointer<SdlGamepad>, provided by the SdlGamepadPointerEx extension

Get the firmware version of an opened gamepad, if available.
getId() int

Available on Pointer<SdlGamepad>, provided by the SdlGamepadPointerEx extension

Get the instance ID of an opened gamepad.
getJoystick() Pointer<SdlJoystick>

Available on Pointer<SdlGamepad>, provided by the SdlGamepadPointerEx extension

Get the underlying joystick from a gamepad.
getMapping() Pointer<Int8>

Available on Pointer<SdlGamepad>, provided by the SdlGamepadPointerEx extension

Get the current mapping of a gamepad.
getName() String?

Available on Pointer<SdlGamepad>, provided by the SdlGamepadPointerEx extension

Get the implementation-dependent name for an opened gamepad.
getNumTouchpadFingers(int touchpad) int

Available on Pointer<SdlGamepad>, provided by the SdlGamepadPointerEx extension

Get the number of supported simultaneous fingers on a touchpad on a game gamepad.
getNumTouchpads() int

Available on Pointer<SdlGamepad>, provided by the SdlGamepadPointerEx extension

Get the number of touchpads on a gamepad.
getPath() String?

Available on Pointer<SdlGamepad>, provided by the SdlGamepadPointerEx extension

Get the implementation-dependent path for an opened gamepad.
getPlayerIndex() int

Available on Pointer<SdlGamepad>, provided by the SdlGamepadPointerEx extension

Get the player index of an opened gamepad.
getPowerInfo(Pointer<Int32> percent) int

Available on Pointer<SdlGamepad>, provided by the SdlGamepadPointerEx extension

Get the battery state of a gamepad.
getProduct() int

Available on Pointer<SdlGamepad>, provided by the SdlGamepadPointerEx extension

Get the USB product ID of an opened gamepad, if available.
getProductVersion() int

Available on Pointer<SdlGamepad>, provided by the SdlGamepadPointerEx extension

Get the product version of an opened gamepad, if available.
getProperties() int

Available on Pointer<SdlGamepad>, provided by the SdlGamepadPointerEx extension

Get the properties associated with an opened gamepad.
getRealType() int

Available on Pointer<SdlGamepad>, provided by the SdlGamepadPointerEx extension

Get the type of an opened gamepad, ignoring any mapping override.
getSensorData(int type, Pointer<Float> data, int numValues) bool

Available on Pointer<SdlGamepad>, provided by the SdlGamepadPointerEx extension

Get the current state of a gamepad sensor.
getSensorDataRate(int type) double

Available on Pointer<SdlGamepad>, provided by the SdlGamepadPointerEx extension

Get the data rate (number of events per second) of a gamepad sensor.
getSerial() String?

Available on Pointer<SdlGamepad>, provided by the SdlGamepadPointerEx extension

Get the serial number of an opened gamepad, if available.
getSteamHandle() int

Available on Pointer<SdlGamepad>, provided by the SdlGamepadPointerEx extension

Get the Steam Input handle of an opened gamepad, if available.
getTouchpadFinger(int touchpad, int finger, Pointer<Uint8> down, Pointer<Float> x, Pointer<Float> y, Pointer<Float> pressure) bool

Available on Pointer<SdlGamepad>, provided by the SdlGamepadPointerEx extension

Get the current state of a finger on a touchpad on a gamepad.
getType() int

Available on Pointer<SdlGamepad>, provided by the SdlGamepadPointerEx extension

Get the type of an opened gamepad.
getVendor() int

Available on Pointer<SdlGamepad>, provided by the SdlGamepadPointerEx extension

Get the USB vendor ID of an opened gamepad, if available.
hasAxis(int axis) bool

Available on Pointer<SdlGamepad>, provided by the SdlGamepadPointerEx extension

Query whether a gamepad has a given axis.
hasButton(int button) bool

Available on Pointer<SdlGamepad>, provided by the SdlGamepadPointerEx extension

Query whether a gamepad has a given button.
hasSensor(int type) bool

Available on Pointer<SdlGamepad>, provided by the SdlGamepadPointerEx extension

Return whether a gamepad has a particular sensor.
rumble(int lowFrequencyRumble, int highFrequencyRumble, int durationMs) bool

Available on Pointer<SdlGamepad>, provided by the SdlGamepadPointerEx extension

Start a rumble effect on a gamepad.
rumbleTriggers(int leftRumble, int rightRumble, int durationMs) bool

Available on Pointer<SdlGamepad>, provided by the SdlGamepadPointerEx extension

Start a rumble effect in the gamepad's triggers.
sendEffect(Pointer<NativeType> data, int size) bool

Available on Pointer<SdlGamepad>, provided by the SdlGamepadPointerEx extension

Send a gamepad specific effect packet.
sensorEnabled(int type) bool

Available on Pointer<SdlGamepad>, provided by the SdlGamepadPointerEx extension

Query whether sensor data reporting is enabled for a gamepad.
setLed(int red, int green, int blue) bool

Available on Pointer<SdlGamepad>, provided by the SdlGamepadPointerEx extension

Update a gamepad's LED color.
setPlayerIndex(int playerIndex) bool

Available on Pointer<SdlGamepad>, provided by the SdlGamepadPointerEx extension

Set the player index of an opened gamepad.
setSensorEnabled(int type, bool enabled) bool

Available on Pointer<SdlGamepad>, provided by the SdlGamepadPointerEx extension

Set whether data reporting for a gamepad sensor is enabled.