SdlGamepadPointerEx extension
- on
Methods
-
close(
) → void -
Available on Pointer<
Close a gamepad previously opened with SDL_OpenGamepad().SdlGamepad> , provided by the SdlGamepadPointerEx extension -
connected(
) → bool -
Available on Pointer<
Check if a gamepad has been opened and is currently connected.SdlGamepad> , provided by the SdlGamepadPointerEx extension -
getAppleSfSymbolsNameForAxis(
int axis) → String? -
Available on Pointer<
Return the sfSymbolsName for a given axis on a gamepad on Apple platforms.SdlGamepad> , provided by the SdlGamepadPointerEx extension -
getAppleSfSymbolsNameForButton(
int button) → String? -
Available on Pointer<
Return the sfSymbolsName for a given button on a gamepad on Apple platforms.SdlGamepad> , provided by the SdlGamepadPointerEx extension -
getAxis(
int axis) → int -
Available on Pointer<
Get the current state of an axis control on a gamepad.SdlGamepad> , provided by the SdlGamepadPointerEx extension -
getBindings(
Pointer< Int32> count) → Pointer<Pointer< SdlGamepadBinding> > -
Available on Pointer<
Get the SDL joystick layer bindings for a gamepad.SdlGamepad> , provided by the SdlGamepadPointerEx extension -
getButton(
int button) → bool -
Available on Pointer<
Get the current state of a button on a gamepad.SdlGamepad> , provided by the SdlGamepadPointerEx extension -
getButtonLabel(
int button) → int -
Available on Pointer<
Get the label of a button on a gamepad.SdlGamepad> , provided by the SdlGamepadPointerEx extension -
getConnectionState(
) → int -
Available on Pointer<
Get the connection state of a gamepad.SdlGamepad> , provided by the SdlGamepadPointerEx extension -
getFirmwareVersion(
) → int -
Available on Pointer<
Get the firmware version of an opened gamepad, if available.SdlGamepad> , provided by the SdlGamepadPointerEx extension -
getId(
) → int -
Available on Pointer<
Get the instance ID of an opened gamepad.SdlGamepad> , provided by the SdlGamepadPointerEx extension -
getJoystick(
) → Pointer< SdlJoystick> -
Available on Pointer<
Get the underlying joystick from a gamepad.SdlGamepad> , provided by the SdlGamepadPointerEx extension -
getMapping(
) → Pointer< Int8> -
Available on Pointer<
Get the current mapping of a gamepad.SdlGamepad> , provided by the SdlGamepadPointerEx extension -
getName(
) → String? -
Available on Pointer<
Get the implementation-dependent name for an opened gamepad.SdlGamepad> , provided by the SdlGamepadPointerEx extension -
getNumTouchpadFingers(
int touchpad) → int -
Available on Pointer<
Get the number of supported simultaneous fingers on a touchpad on a game gamepad.SdlGamepad> , provided by the SdlGamepadPointerEx extension -
getNumTouchpads(
) → int -
Available on Pointer<
Get the number of touchpads on a gamepad.SdlGamepad> , provided by the SdlGamepadPointerEx extension -
getPath(
) → String? -
Available on Pointer<
Get the implementation-dependent path for an opened gamepad.SdlGamepad> , provided by the SdlGamepadPointerEx extension -
getPlayerIndex(
) → int -
Available on Pointer<
Get the player index of an opened gamepad.SdlGamepad> , provided by the SdlGamepadPointerEx extension -
getPowerInfo(
Pointer< Int32> percent) → int -
Available on Pointer<
Get the battery state of a gamepad.SdlGamepad> , provided by the SdlGamepadPointerEx extension -
getProduct(
) → int -
Available on Pointer<
Get the USB product ID of an opened gamepad, if available.SdlGamepad> , provided by the SdlGamepadPointerEx extension -
getProductVersion(
) → int -
Available on Pointer<
Get the product version of an opened gamepad, if available.SdlGamepad> , provided by the SdlGamepadPointerEx extension -
getProperties(
) → int -
Available on Pointer<
Get the properties associated with an opened gamepad.SdlGamepad> , provided by the SdlGamepadPointerEx extension -
getRealType(
) → int -
Available on Pointer<
Get the type of an opened gamepad, ignoring any mapping override.SdlGamepad> , provided by the SdlGamepadPointerEx extension -
getSensorData(
int type, Pointer< Float> data, int numValues) → bool -
Available on Pointer<
Get the current state of a gamepad sensor.SdlGamepad> , provided by the SdlGamepadPointerEx extension -
getSensorDataRate(
int type) → double -
Available on Pointer<
Get the data rate (number of events per second) of a gamepad sensor.SdlGamepad> , provided by the SdlGamepadPointerEx extension -
getSerial(
) → String? -
Available on Pointer<
Get the serial number of an opened gamepad, if available.SdlGamepad> , provided by the SdlGamepadPointerEx extension -
getSteamHandle(
) → int -
Available on Pointer<
Get the Steam Input handle of an opened gamepad, if available.SdlGamepad> , provided by the SdlGamepadPointerEx extension -
getTouchpadFinger(
int touchpad, int finger, Pointer< Uint8> down, Pointer<Float> x, Pointer<Float> y, Pointer<Float> pressure) → bool -
Available on Pointer<
Get the current state of a finger on a touchpad on a gamepad.SdlGamepad> , provided by the SdlGamepadPointerEx extension -
getType(
) → int -
Available on Pointer<
Get the type of an opened gamepad.SdlGamepad> , provided by the SdlGamepadPointerEx extension -
getVendor(
) → int -
Available on Pointer<
Get the USB vendor ID of an opened gamepad, if available.SdlGamepad> , provided by the SdlGamepadPointerEx extension -
hasAxis(
int axis) → bool -
Available on Pointer<
Query whether a gamepad has a given axis.SdlGamepad> , provided by the SdlGamepadPointerEx extension -
hasButton(
int button) → bool -
Available on Pointer<
Query whether a gamepad has a given button.SdlGamepad> , provided by the SdlGamepadPointerEx extension -
hasSensor(
int type) → bool -
Available on Pointer<
Return whether a gamepad has a particular sensor.SdlGamepad> , provided by the SdlGamepadPointerEx extension -
rumble(
int lowFrequencyRumble, int highFrequencyRumble, int durationMs) → bool -
Available on Pointer<
Start a rumble effect on a gamepad.SdlGamepad> , provided by the SdlGamepadPointerEx extension -
rumbleTriggers(
int leftRumble, int rightRumble, int durationMs) → bool -
Available on Pointer<
Start a rumble effect in the gamepad's triggers.SdlGamepad> , provided by the SdlGamepadPointerEx extension -
sendEffect(
Pointer< NativeType> data, int size) → bool -
Available on Pointer<
Send a gamepad specific effect packet.SdlGamepad> , provided by the SdlGamepadPointerEx extension -
sensorEnabled(
int type) → bool -
Available on Pointer<
Query whether sensor data reporting is enabled for a gamepad.SdlGamepad> , provided by the SdlGamepadPointerEx extension -
setLed(
int red, int green, int blue) → bool -
Available on Pointer<
Update a gamepad's LED color.SdlGamepad> , provided by the SdlGamepadPointerEx extension -
setPlayerIndex(
int playerIndex) → bool -
Available on Pointer<
Set the player index of an opened gamepad.SdlGamepad> , provided by the SdlGamepadPointerEx extension -
setSensorEnabled(
int type, bool enabled) → bool -
Available on Pointer<
Set whether data reporting for a gamepad sensor is enabled.SdlGamepad> , provided by the SdlGamepadPointerEx extension