table of contents
other versions
SDL_GetNumTouchDevices(3) | SDL3 FUNCTIONS | SDL_GetNumTouchDevices(3) |
NAME¶
SDL_GetNumTouchDevices - Get the number of registered touch devices.
SYNOPSIS¶
#include "SDL3/SDL.h"
int SDL_GetNumTouchDevices(void);
DESCRIPTION¶
On some platforms SDL first sees the touch device if it was actually used. Therefore SDL_GetNumTouchDevices () may return 0 although devices are available. After using all devices at least once the number will be correct.
This was fixed for Android in SDL 2.0.1.
RETURN VALUE¶
Returns the number of registered touch devices.
AVAILABILITY¶
This function is available since SDL 3.0.0.
SEE ALSO¶
SDL_GetTouchDevice(3)
SDL 3.0.0 | SDL |