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 |
Uint8 | button |
Uint8 | state |
Pressure-sensitive pen button event structure (event.pbutton.*)
This is for buttons on the pen itself that the user might click. The pen itself pressing down to draw triggers a SDL_EVENT_PEN_DOWN event instead.
Definition at line 795 of file SDL_events.h.
Uint8 SDL_PenButtonEvent::button |
The pen button index (first button is 1).
Definition at line 805 of file SDL_events.h.
SDL_PenInputFlags SDL_PenButtonEvent::pen_state |
Complete pen input state at time of event
Definition at line 802 of file SDL_events.h.
Uint32 SDL_PenButtonEvent::reserved |
Definition at line 798 of file SDL_events.h.
Uint8 SDL_PenButtonEvent::state |
SDL_PRESSED or SDL_RELEASED
Definition at line 806 of file SDL_events.h.
Uint64 SDL_PenButtonEvent::timestamp |
In nanoseconds, populated using SDL_GetTicksNS()
Definition at line 799 of file SDL_events.h.
SDL_EventType SDL_PenButtonEvent::type |
SDL_EVENT_PEN_BUTTON_DOWN or SDL_EVENT_PEN_BUTTON_UP
Definition at line 797 of file SDL_events.h.
SDL_PenID SDL_PenButtonEvent::which |
The pen instance id
Definition at line 801 of file SDL_events.h.
SDL_WindowID SDL_PenButtonEvent::windowID |
The window with mouse focus, if any
Definition at line 800 of file SDL_events.h.
float SDL_PenButtonEvent::x |
X position of pen on tablet
Definition at line 803 of file SDL_events.h.
float SDL_PenButtonEvent::y |
Y position of pen on tablet
Definition at line 804 of file SDL_events.h.