logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

SDL_PenTouchEvent - Pressure-sensitive pen touched event structure (event.ptouch.*)

Availability

       This struct is available since SDL 3.2.0.

Simple Directmedia Layer                           SDL 3.2.20                           SDL_PenTouchEvent(3type)

Description

       These events come when a pen touches a surface (a tablet, etc), or lifts off from one.

Name

       SDL_PenTouchEvent - Pressure-sensitive pen touched event structure (event.ptouch.*)

Synopsis

#include<SDL3/SDL_events.h>typedefstructSDL_PenTouchEvent{SDL_EventTypetype;/**<SDL_EVENT_PEN_DOWNorSDL_EVENT_PEN_UP*/Uint32reserved;Uint64timestamp;/**<Innanoseconds,populatedusingSDL_GetTicksNS()*/SDL_WindowIDwindowID;/**<Thewindowwithpenfocus,ifany*/SDL_PenIDwhich;/**<Thepeninstanceid*/SDL_PenInputFlagspen_state;/**<Completepeninputstateattimeofevent*/floatx;/**<Xcoordinate,relativetowindow*/floaty;/**<Ycoordinate,relativetowindow*/booleraser;/**<trueiferaserendisused(notallpenssupportthis).*/booldown;/**<trueifthepenistouchingorfalseifthepenisliftedoff*/}SDL_PenTouchEvent;

See Also