SDL 3.0
|
#include <SDL_events.h>
Data Fields | |
Uint32 | type |
Uint64 | timestamp |
Uint32 | windowID |
SDL_PenID | which |
Uint8 | button |
Uint8 | state |
Uint16 | pen_state |
float | x |
float | y |
float | axes [SDL_PEN_NUM_AXES] |
Pressure-sensitive pen button event structure (event.pbutton.*)
Definition at line 566 of file SDL_events.h.
float SDL_PenButtonEvent::axes[SDL_PEN_NUM_AXES] |
Pen axes such as pressure and tilt (ordered as per SDL_PenAxis)
Definition at line 579 of file SDL_events.h.
Uint8 SDL_PenButtonEvent::button |
The pen button index (1 represents the pen tip for compatibility with mouse events)
Definition at line 572 of file SDL_events.h.
Uint16 SDL_PenButtonEvent::pen_state |
Pen button masks (where SDL_BUTTON(1) is the first button, SDL_BUTTON(2) is the second button etc.), SDL_PEN_DOWN_MASK is set if the pen is touching the surface, and SDL_PEN_ERASER_MASK is set if the pen is (used as) an eraser.
Definition at line 574 of file SDL_events.h.
Uint8 SDL_PenButtonEvent::state |
Definition at line 573 of file SDL_events.h.
Uint64 SDL_PenButtonEvent::timestamp |
In nanoseconds, populated using SDL_GetTicksNS()
Definition at line 569 of file SDL_events.h.
Uint32 SDL_PenButtonEvent::type |
SDL_EVENT_PEN_BUTTON_DOWN or SDL_EVENT_PEN_BUTTON_UP
Definition at line 568 of file SDL_events.h.
SDL_PenID SDL_PenButtonEvent::which |
The pen instance id
Definition at line 571 of file SDL_events.h.
Uint32 SDL_PenButtonEvent::windowID |
The window with pen focus, if any
Definition at line 570 of file SDL_events.h.
float SDL_PenButtonEvent::x |
X coordinate, relative to window
Definition at line 577 of file SDL_events.h.
float SDL_PenButtonEvent::y |
Y coordinate, relative to window
Definition at line 578 of file SDL_events.h.