|
⇤ ← Revision 1 as of 2013-11-02 12:19:50
Size: 1304
Comment: Added page for SDL_GetNumTouchDevices( ) using content from header.
|
← Revision 2 as of 2013-11-02 12:32:25 ⇥
Size: 1344
Comment: Added a remark and a related function.
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 35: | Line 35: |
| ''You can add useful comments here'' | 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. |
| Line 37: | Line 39: |
| ##Leave this section as-is unless you have a remark to put in. In that case, replace ''You can add useful comments here'' with your remark(s) following the Style Guide instructions. Leave the rest of the markup alone and delete this comment. | This was fixed for Android in SDL 2.0.1. |
| Line 42: | Line 44: |
| == Related Functions == .[[SDL_GetTouchDevice]] |
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.
