SDL 3.0
|
#include <SDL_events.h>
Data Fields | |
SDL_EventType | type |
Uint32 | reserved |
Uint64 | timestamp |
SDL_WindowID | windowID |
SDL_PenID | which |
SDL_PenInputFlags | pen_state |
float | x |
float | y |
bool | eraser |
bool | down |
Pressure-sensitive pen touched event structure (event.ptouch.*)
These events come when a pen touches a surface (a tablet, etc), or lifts off from one.
Definition at line 836 of file SDL_events.h.
bool SDL_PenTouchEvent::down |
true if the pen is touching or false if the pen is lifted off
Definition at line 847 of file SDL_events.h.
bool SDL_PenTouchEvent::eraser |
true if eraser end is used (not all pens support this).
Definition at line 846 of file SDL_events.h.
SDL_PenInputFlags SDL_PenTouchEvent::pen_state |
Complete pen input state at time of event
Definition at line 843 of file SDL_events.h.
Uint32 SDL_PenTouchEvent::reserved |
Definition at line 839 of file SDL_events.h.
Uint64 SDL_PenTouchEvent::timestamp |
In nanoseconds, populated using SDL_GetTicksNS()
Definition at line 840 of file SDL_events.h.
SDL_EventType SDL_PenTouchEvent::type |
SDL_EVENT_PEN_DOWN or SDL_EVENT_PEN_UP
Definition at line 838 of file SDL_events.h.
SDL_PenID SDL_PenTouchEvent::which |
The pen instance id
Definition at line 842 of file SDL_events.h.
SDL_WindowID SDL_PenTouchEvent::windowID |
The window with pen focus, if any
Definition at line 841 of file SDL_events.h.
float SDL_PenTouchEvent::x |
X coordinate, relative to window
Definition at line 844 of file SDL_events.h.
float SDL_PenTouchEvent::y |
Y coordinate, relative to window
Definition at line 845 of file SDL_events.h.