mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-07 07:00:48 +00:00
ensure windowID retains the same offset in struct SDL_PinchFingerEvent
This commit is contained in:
parent
e669fd6dfd
commit
abe09d08be
1 changed files with 1 additions and 1 deletions
|
|
@ -801,12 +801,12 @@ typedef struct SDL_PinchFingerEvent
|
|||
SDL_EventType type; /**< ::SDL_EVENT_PINCH_BEGIN or ::SDL_EVENT_PINCH_UPDATE or ::SDL_EVENT_PINCH_END */
|
||||
Uint32 reserved;
|
||||
Uint64 timestamp; /**< In nanoseconds, populated using SDL_GetTicksNS() */
|
||||
SDL_WindowID windowID; /**< The window underneath the finger, if any */
|
||||
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