|
Size: 1021
Comment: SDL_GetTouch does no more exist and SDL_GetTouchFinger is similar.
|
Size: 1128
Comment: Updated to match SDL_touch.h.
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 10: | Line 10: |
| = SDL_GetTouch = Use this function to get the touch device object at a specified touch device ID. |
= SDL_GetTouchFinger = Use this function to get the finger object for specified touch device ID and finger index. |
| Line 20: | Line 20: |
| SDL_Touch* SDL_GetTouch(SDL_TouchID id) | SDL_Finger* SDL_GetTouchFinger(SDL_TouchID touchID, int index) |
| Line 26: | Line 26: |
| ||'''id'''||the ID of the requested touch device|| | ||'''touchID'''||the ID of the requested touch device|| ||'''index'''||the index of the requested finger|| |
| Line 31: | Line 32: |
| Returns a pointer to the SDL_Touch object or NULL if no object at the given ID could be found. | Returns a pointer to the SDL_Finger object or NULL if no object at the given ID and index could be found. |
DRAFT |
SDL_GetTouchFinger
Use this function to get the finger object for specified touch device ID and finger index.
Contents
Syntax
SDL_Finger* SDL_GetTouchFinger(SDL_TouchID touchID, int index)
Function Parameters
touchID |
the ID of the requested touch device |
index |
the index of the requested finger |
Return Value
Returns a pointer to the SDL_Finger object or NULL if no object at the given ID and index could be found.
Code Examples
You can add your code example here
Remarks
The returned resource is owned by SDL and should not be deallocated.
