Scroll to navigation

SDL_GetGamepadCapSense(3) SDL3 FUNCTIONS SDL_GetGamepadCapSense(3)

NAME

SDL_GetGamepadCapSense - Get the current state of a capsense on a gamepad.

SYNOPSIS

#include <SDL3/SDL_gamepad.h>
bool SDL_GetGamepadCapSense(SDL_Gamepad *gamepad, SDL_GamepadCapSenseType type);

FUNCTION PARAMETERS

a gamepad.
the type of capsense to query.

RETURN VALUE

Returns true if the capsense is touched, false otherwise.

THREAD SAFETY

It is safe to call this function from any thread.

AVAILABILITY

This function is available since SDL 3.6.0.

SEE ALSO

SDL_GamepadHasCapSense(3)

SDL 3.5.0 Simple Directmedia Layer