ensure windowID retains the same offset in struct SDL_PinchFingerEvent

This commit is contained in:
brentfpage 2026-03-13 00:00:18 -07:00
parent e669fd6dfd
commit abe09d08be

View file

@ -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;
/**