Wiki Page Content

Differences between revisions 1 and 7 (spanning 6 versions)
Revision 1 as of 2011-01-12 23:05:10
Size: 1214
Editor: SheenaSmith
Comment: create page - changeset 4971 touch/gesture
Revision 7 as of 2011-11-08 17:37:48
Size: 1473
Editor: SheenaSmith
Comment: update content - remarks (11/7 4d7b69e575f9); description, params
Deletions are marked like this. Additions are marked like this.
Line 2: Line 2:
#pragma disable-camelcase #pragma camelcase off
Line 6: Line 6:
A structure that contains touch finger motion,,/finger event structure,, ^information^. A structure that contains finger touch event information.
Line 13: Line 13:
||SDL_TouchID||'''touchId'''||the touch device id||
||SDL_FingerID||'''fingerId'''||description||
||SDL_TouchID||'''touchId'''||the touch device ,,id,, ^index^||
||SDL_FingerID||'''fingerId'''||||
Line 16: Line 16:
||Uint8||'''padding1'''||description||
||Uint8||'''padding2'''||description||
||Uint8||'''padding3'''||description||
||Uint16||'''x'''||description||
||Uint16||'''y'''||description||
||Uint16||'''dx'''||description||
||Uint16||'''dy'''||description||
||Uint16||'''pressure'''||description||
||Uint16||'''x'''||^the x-axis location of the touch event^||
||Uint16||'''y'''||^the y-axis location of the touch event^||
||Uint16||'''dx'''||^the distance moved in the x-axis^||
||Uint16||'''dy'''||^the distance moved in the y-axis^||
||Uint16||'''pressure'''||^the quantity of pressure applied^||

<<Color2(green,Note that touchID is described as "the touch device index" in all 3 other similar functions.)>>
Line 31: Line 30:
''You can add useful comments here'' [[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.
Line 38: Line 37:
 .[[SDL_TouchButtonEvent]]
Line 40: Line 40:
 .[[SDL_FunctionLeaveSectionIfEmpty]]

DRAFT

SDL_TouchFingerEvent

A structure that contains finger touch event information.

Data Fields

Uint32

type

SDL_FINGERMOTION, SDL_FINGERDOWN, or SDL_FINGERUP

Uint32

windowID

the window with mouse focus, if any

SDL_TouchID

touchId

the touch device id index

SDL_FingerID

fingerId

Uint8

state

the current button state

Uint16

x

the x-axis location of the touch event

Uint16

y

the y-axis location of the touch event

Uint16

dx

the distance moved in the x-axis

Uint16

dy

the distance moved in the y-axis

Uint16

pressure

the quantity of pressure applied

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