Size: 1214
Comment: create page - changeset 4971 touch/gesture
|
Size: 1304
Comment: Removed link to deleted page.
|
Deletions are marked like this. | Additions are marked like this. |
Line 2: | Line 2: |
#pragma disable-camelcase ||<tablewidth="100%" style="color: #FF0000;" :> DRAFT|| |
#pragma camelcase off |
Line 6: | Line 5: |
A structure that contains touch finger motion,,/finger event structure,, ^information^. | A structure that contains finger touch event information. |
Line 12: | Line 11: |
||Uint32||'''windowID'''||the window with mouse focus, if any|| ||SDL_TouchID||'''touchId'''||the touch device id|| ||SDL_FingerID||'''fingerId'''||description|| ||Uint8||'''state'''||the current button state|| ||Uint8||'''padding1'''||description|| ||Uint8||'''padding2'''||description|| ||Uint8||'''padding3'''||description|| ||Uint16||'''x'''||description|| ||Uint16||'''y'''||description|| ||Uint16||'''dx'''||description|| ||Uint16||'''dy'''||description|| ||Uint16||'''pressure'''||description|| |
||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)|| |
Line 31: | Line 26: |
''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 40: | Line 35: |
.[[SDL_FunctionLeaveSectionIfEmpty]] |
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