pen: Offer the current window during promixity events on most platforms.

Fixes #12356.
This commit is contained in:
Ryan C. Gordon
2025-11-10 16:07:07 -05:00
parent 7073cfc58e
commit 25ab8c99df
10 changed files with 34 additions and 26 deletions

View File

@@ -818,6 +818,9 @@ typedef struct SDL_PinchFingerEvent
* is there." The pen touching and lifting off from the tablet while not
* leaving the area are handled by SDL_EVENT_PEN_DOWN and SDL_EVENT_PEN_UP.
*
* Not all platforms have a window associated with the pen during proximity
* events. Some wait until motion/button/etc events to offer this info.
*
* \since This struct is available since SDL 3.2.0.
*/
typedef struct SDL_PenProximityEvent