SDL_GetGamepadTouchpadFinger

Get the current state of a finger on a touchpad on a gamepad.

extern (C) nothrow @nogc extern
bool
SDL_GetGamepadTouchpadFinger
(,,
int finger
,
bool* down
,
float* x
,
float* y
,
float* pressure
)

Parameters

gamepad SDL_Gamepad*

a gamepad.

touchpad int

a touchpad.

finger int

a finger.

down bool*

a pointer filled with true if the finger is down, false otherwise, may be NULL.

x float*

a pointer filled with the x position, normalized 0 to 1, with the origin in the upper left, may be NULL.

y float*

a pointer filled with the y position, normalized 0 to 1, with the origin in the upper left, may be NULL.

pressure float*

a pointer filled with pressure value, may be NULL.

Return Value

Type: bool

true on success or false on failure; call SDL_GetError() for more information.

See Also

Meta