|
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_PenAxis | axis |
| float | value |
Pressure-sensitive pen pressure / angle event structure (event.paxis.*)
You might get some of these events even if the pen isn't touching the tablet.
Definition at line 880 of file SDL_events.h.
| SDL_PenAxis SDL_PenAxisEvent::axis |
Axis that has changed
Definition at line 890 of file SDL_events.h.
| SDL_PenInputFlags SDL_PenAxisEvent::pen_state |
Complete pen input state at time of event
Definition at line 887 of file SDL_events.h.
| Uint32 SDL_PenAxisEvent::reserved |
Definition at line 883 of file SDL_events.h.
| Uint64 SDL_PenAxisEvent::timestamp |
In nanoseconds, populated using SDL_GetTicksNS()
Definition at line 884 of file SDL_events.h.
| SDL_EventType SDL_PenAxisEvent::type |
SDL_EVENT_PEN_AXIS
Definition at line 882 of file SDL_events.h.
| float SDL_PenAxisEvent::value |
New value of axis
Definition at line 891 of file SDL_events.h.
| SDL_PenID SDL_PenAxisEvent::which |
The pen instance id
Definition at line 886 of file SDL_events.h.
| SDL_WindowID SDL_PenAxisEvent::windowID |
The window with pen focus, if any
Definition at line 885 of file SDL_events.h.
| float SDL_PenAxisEvent::x |
X coordinate, relative to window
Definition at line 888 of file SDL_events.h.
| float SDL_PenAxisEvent::y |
Y coordinate, relative to window
Definition at line 889 of file SDL_events.h.