mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-14 10:17:54 +00:00
more information for pinch gestures on mobile
This commit is contained in:
parent
bbcc205de9
commit
e669fd6dfd
10 changed files with 35 additions and 23 deletions
|
|
@ -802,6 +802,10 @@ typedef struct SDL_PinchFingerEvent
|
|||
Uint32 reserved;
|
||||
Uint64 timestamp; /**< In nanoseconds, populated using SDL_GetTicksNS() */
|
||||
float scale; /**< The scale change since the last SDL_EVENT_PINCH_UPDATE. Scale < 1 is "zoom out". Scale > 1 is "zoom in". */
|
||||
float span_x; /**< The average X distance between each of the pointers forming the pinch in screen pixel coordinates. */
|
||||
float span_y; /**< The average Y distance between each of the pointers forming the pinch in screen pixel coordinates. */
|
||||
float focus_x; /**< The X coordinate of the current gesture's focal point in screen pixel coordinates. */
|
||||
float focus_y; /**< The Y coordinate of the current gesture's focal point in screen pixel coordinates. */
|
||||
SDL_WindowID windowID; /**< The window underneath the finger, if any */
|
||||
} SDL_PinchFingerEvent;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue