Size: 1284
Comment: camelcase pragma change
|
Size: 1661
Comment: Updated to reflect the normalized floats, marked the windowID as possibly depreciated, added the timestamp field
|
Deletions are marked like this. | Additions are marked like this. |
Line 6: | Line 6: |
A structure that contains touch finger motion,,/finger event structure,, ^information^. | A structure that contains finger touch event information. |
Line 12: | Line 12: |
||Uint32||'''windowID'''||the window with mouse focus, if any|| | ||Uint32||'''windowID'''||the window with mouse focus, if any. ''this field may no longer exist''|| ||Uint32||'''timestamp'''||timestamp of the event|| |
Line 14: | Line 15: |
||SDL_FingerID||'''fingerId'''||description|| ||Uint8||'''state'''||the current button state|| ||Uint16||'''x'''||description|| ||Uint16||'''y'''||description|| ||Uint16||'''dx'''||description|| ||Uint16||'''dy'''||description|| ||Uint16||'''pressure'''||description|| |
||SDL_FingerID||'''fingerId'''|||| ||Uint8||'''state'''||the current button state. ''this field may no longer exist''|| ||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)^|| |
Line 22: | Line 23: |
<<Color2(green,Note that touchID is described as "the touch device index" in all 3 other similar functions. Also note that SDL_!TouchID and SDL_!FingerID are not defined in this header.)>> | <<Color2(green,Note that touchID is described as "the touch device index" in all 3 other similar functions.)>> |
Line 30: | Line 31: |
''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. |
DRAFT |
SDL_TouchFingerEvent
A structure that contains finger touch event information.
Contents
Data Fields
Uint32 |
type |
SDL_FINGERMOTION, SDL_FINGERDOWN, or SDL_FINGERUP |
Uint32 |
windowID |
the window with mouse focus, if any. this field may no longer exist |
Uint32 |
timestamp |
timestamp of the event |
SDL_TouchID |
touchId |
the touch device id index |
SDL_FingerID |
fingerId |
|
Uint8 |
state |
the current button state. this field may no longer exist |
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.
Related Enumerations
Related Structures