Wiki Page Content

Differences between revisions 4 and 5
Revision 4 as of 2016-10-21 22:14:43
Size: 1163
Comment: Added Version section.
Revision 5 as of 2016-10-21 22:16:13
Size: 1177
Comment: Added parameter name in Remarks.
Deletions are marked like this. Additions are marked like this.
Line 43: Line 43:
If the parameter is -1 (i.e., all devices), this function will always return 1, regardless of whether there actually are any devices. If the parameter '''touchId''' is -1 (i.e., all devices), this function will always return 1, regardless of whether there actually are any devices.

DRAFT

SDL_RecordGesture

Use this function to begin recording a gesture on a specified touch device or all touch devices.

Syntax

int SDL_RecordGesture(SDL_TouchID touchId)

Function Parameters

touchId

the touch device index, or -1 for all touch devices

Return Value

Returns 1 on success or 0 if the specified device could not be found.

Code Examples

You can add your code example here

Remarks

If the parameter touchId is -1 (i.e., all devices), this function will always return 1, regardless of whether there actually are any devices.

Version

This function is available since SDL 2.0.0.


CategoryAPI, CategoryEvents

None: SDL_RecordGesture (last edited 2017-02-12 22:29:51 by PhilippWiesemann)

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