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 |
SDL_bool | eraser |
SDL_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 761 of file SDL_events.h.
SDL_bool SDL_PenTouchEvent::down |
SDL_TRUE if the pen is touching or SDL_FALSE if the pen is lifted off
Definition at line 772 of file SDL_events.h.
SDL_bool SDL_PenTouchEvent::eraser |
SDL_TRUE if eraser end is used (not all pens support this).
Definition at line 771 of file SDL_events.h.
SDL_PenInputFlags SDL_PenTouchEvent::pen_state |
Complete pen input state at time of event
Definition at line 768 of file SDL_events.h.
Uint32 SDL_PenTouchEvent::reserved |
Definition at line 764 of file SDL_events.h.
Uint64 SDL_PenTouchEvent::timestamp |
In nanoseconds, populated using SDL_GetTicksNS()
Definition at line 765 of file SDL_events.h.
SDL_EventType SDL_PenTouchEvent::type |
SDL_EVENT_PEN_DOWN or SDL_EVENT_PEN_UP
Definition at line 763 of file SDL_events.h.
SDL_PenID SDL_PenTouchEvent::which |
The pen instance id
Definition at line 767 of file SDL_events.h.
SDL_WindowID SDL_PenTouchEvent::windowID |
The window with pen focus, if any
Definition at line 766 of file SDL_events.h.
float SDL_PenTouchEvent::x |
X position of pen on tablet
Definition at line 769 of file SDL_events.h.
float SDL_PenTouchEvent::y |
Y position of pen on tablet
Definition at line 770 of file SDL_events.h.