other versions
- testing 3.4.2+ds-1
- unstable 3.4.2+ds-1
- experimental 3.5~git20260304~c20a058+ds-1
| SDL_PinchFingerEvent(3type) | SDL3 DATATYPES | SDL_PinchFingerEvent(3type) |
NAME¶
SDL_PinchFingerEvent - Pinch event structure (event.pinch.*)
SYNOPSIS¶
#include <SDL3/SDL_events.h>
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() */
float scale; /**< The scale change since the last SDL_EVENT_PINCH_UPDATE. Scale < 1 is "zoom out". Scale > 1 is "zoom in". */
SDL_WindowID windowID; /**< The window underneath the finger, if any */
} SDL_PinchFingerEvent;
| SDL 3.5.0 | Simple Directmedia Layer |