Wiki Page Content

Differences between revisions 8 and 10 (spanning 2 versions)
Revision 8 as of 2013-04-03 02:01:56
Size: 1661
Editor: AlexBarry
Comment: Updated to reflect the normalized floats, marked the windowID as possibly depreciated, added the timestamp field
Revision 10 as of 2013-04-20 05:36:33
Size: 1472
Comment: removed 'state' and 'windowId' fields, as they indeed no longer exsist.
Deletions are marked like this. Additions are marked like this.
Line 12: Line 12:
||Uint32||'''windowID'''||the window with mouse focus, if any. ''this field may no longer exist''||
Line 16: Line 15:
||Uint8||'''state'''||the current button state. ''this field may no longer exist''||

DRAFT

SDL_TouchFingerEvent

A structure that contains finger touch event information.

Data Fields

Uint32

type

SDL_FINGERMOTION, SDL_FINGERDOWN, or SDL_FINGERUP

Uint32

timestamp

timestamp of the event

SDL_TouchID

touchId

the touch device id index

SDL_FingerID

fingerId

float

x

the normalized x-axis location of the touch event

float

y

the normalized y-axis location of the touch event

float

dx

the distance moved in the x-axis, normalized

float

dy

the distance moved in the y-axis, normalized

float

pressure

the quantity of pressure applied, normalized (0...1)

green

Code Examples

You can add your code example here

Remarks

SDL_TouchFingerEvent is a member of the SDL_Event union and is used when an event of type SDL_FINGERMOTION, SDL_FINGERDOWN, or SDL_FINGERUP is reported. You would access it through the event's tfinger field.


CategoryStruct, CategoryEvents

None: SDL_TouchFingerEvent (last edited 2016-11-20 22:00:55 by PhilippWiesemann)

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