Wiki Page Content

DRAFT

SDL_GetNumTouchDevices

Use this function to get the number of registered touch devices.

Syntax

int SDL_GetNumTouchDevices(void)

Return Value

Returns the number of registered touch devices.

Code Examples

You can add your code example here

Remarks

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.

Version

This function is available since SDL 2.0.0.


CategoryAPI, CategoryEvents

None: SDL_GetNumTouchDevices (last edited 2013-11-02 12:32:25 by PhilippWiesemann)

Feedback
Please include your contact information if you'd like to receive a reply.
Submit