Wiki Page Content

Differences between revisions 12 and 14 (spanning 2 versions)
Revision 12 as of 2013-08-16 22:03:40
Size: 1304
Comment: Removed link to deleted page.
Revision 14 as of 2016-11-20 21:59:06
Size: 1300
Comment: Fixed descriptions.
Deletions are marked like this. Additions are marked like this.
Line 12: Line 12:
||SDL_TouchID||'''touchId'''||the touch device index||
||SDL_FingerID||'''fingerId'''||the finger index||
||SDL_TouchID||'''touchId'''||the touch device id||
||SDL_FingerID||'''fingerId'''||the finger id||
Line 16: Line 16:
||float||'''dx'''||the distance moved in the x-axis, normalized (0...1)||
||float||'''dy'''||the distance moved in the y-axis, normalized (0...1)||
||float||'''dx'''||the distance moved in the x-axis, normalized (-1...1)||
||float||'''dy'''||the distance moved in the y-axis, normalized (-1...1)||

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

SDL_FingerID

fingerId

the finger id

float

x

the x-axis location of the touch event, normalized (0...1)

float

y

the y-axis location of the touch event, normalized (0...1)

float

dx

the distance moved in the x-axis, normalized (-1...1)

float

dy

the distance moved in the y-axis, normalized (-1...1)

float

pressure

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

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