From abe09d08bef0bb659081f839904a994877d65514 Mon Sep 17 00:00:00 2001 From: brentfpage Date: Fri, 13 Mar 2026 00:00:18 -0700 Subject: [PATCH] ensure windowID retains the same offset in struct SDL_PinchFingerEvent --- include/SDL3/SDL_events.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/SDL3/SDL_events.h b/include/SDL3/SDL_events.h index 62b7835440..c6bc98f6cd 100644 --- a/include/SDL3/SDL_events.h +++ b/include/SDL3/SDL_events.h @@ -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; /**