Scroll to navigation

SDL_GetTouchDevice(3) SDL3 FUNCTIONS SDL_GetTouchDevice(3)

NAME

SDL_GetTouchDevice - Get the touch ID with the given index.

SYNOPSIS

#include "SDL3/SDL.h"
SDL_TouchID SDL_GetTouchDevice(int index);

FUNCTION PARAMETERS

the touch device index

RETURN VALUE

Returns the touch ID with the given index on success or 0 if the index is invalid; call SDL_GetError () for more information.

AVAILABILITY

This function is available since SDL 3.0.0.

SEE ALSO

SDL_GetNumTouchDevices(3)

SDL 3.0.0 SDL