Size: 1472
Comment: removed 'state' and 'windowId' fields, as they indeed no longer exsist.
|
Size: 1332
Comment: Updated
|
Deletions are marked like this. | Additions are marked like this. |
Line 3: | Line 3: |
||<tablewidth="100%" style="color: #FF0000;" :> DRAFT|| | |
Line 13: | Line 12: |
||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)^|| <<Color2(green,Note that touchID is described as "the touch device index" in all 3 other similar functions.)>> |
||SDL_TouchID||'''touchId'''||the touch device index|| ||SDL_FingerID||'''fingerId'''||the finger index|| ||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 (0...1)|| ||float||'''dy'''||the distance moved in the y-axis, normalized (0...1)|| ||float||'''pressure'''||the quantity of pressure applied, normalized (0...1)|| |
SDL_TouchFingerEvent
A structure that contains finger touch event information.
Contents
Data Fields
Uint32 |
type |
SDL_FINGERMOTION, SDL_FINGERDOWN, or SDL_FINGERUP |
Uint32 |
timestamp |
timestamp of the event |
SDL_TouchID |
touchId |
the touch device index |
SDL_FingerID |
fingerId |
the finger index |
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 (0...1) |
float |
dy |
the distance moved in the y-axis, normalized (0...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.
Related Enumerations
Related Structures