4#include <SDL3/SDL_pen.h>
5#include "SDL3pp_mouse.h"
6#include "SDL3pp_touch.h"
96 SDL_PEN_INPUT_BUTTON_1;
99 SDL_PEN_INPUT_BUTTON_2;
102 SDL_PEN_INPUT_BUTTON_3;
105 SDL_PEN_INPUT_BUTTON_4;
108 SDL_PEN_INPUT_BUTTON_5;
111 SDL_PEN_INPUT_ERASER_TIP;
113#if SDL_VERSION_ATLEAST(3, 4, 0)
116 SDL_PEN_INPUT_IN_PROXIMITY;
138 SDL_PEN_AXIS_PRESSURE;
160 SDL_PEN_AXIS_TANGENTIAL_PRESSURE;
168#if SDL_VERSION_ATLEAST(3, 4, 0)
188 SDL_PEN_DEVICE_TYPE_INVALID;
191 SDL_PEN_DEVICE_TYPE_UNKNOWN;
194 SDL_PEN_DEVICE_TYPE_DIRECT;
197 SDL_PEN_DEVICE_TYPE_INDIRECT;
216 return SDL_GetPenDeviceType(instance_id);
SDL_MouseID MouseID
This is a unique ID for a mouse for the time it is connected to the system, and is never reused for t...
Definition: SDL3pp_mouse.h:170
SDL_PenID PenID
SDL pen instance IDs.
Definition: SDL3pp_pen.h:69
constexpr TouchID PEN_TOUCHID
The TouchID for touch events simulated with pen input.
Definition: SDL3pp_pen.h:83
constexpr PenAxis PEN_AXIS_SLIDER
Pen finger wheel or slider (e.g., Airbrush Pen). Unidirectional: 0 to 1.0.
Definition: SDL3pp_pen.h:156
constexpr PenDeviceType PEN_DEVICE_TYPE_INDIRECT
Pen touches something that isn't the display.
Definition: SDL3pp_pen.h:196
constexpr PenInputFlags PEN_INPUT_IN_PROXIMITY
pen is in proximity (since SDL 3.4.0)
Definition: SDL3pp_pen.h:115
constexpr PenInputFlags PEN_INPUT_BUTTON_4
button 4 is pressed
Definition: SDL3pp_pen.h:104
constexpr PenInputFlags PEN_INPUT_BUTTON_5
button 5 is pressed
Definition: SDL3pp_pen.h:107
constexpr PenDeviceType PEN_DEVICE_TYPE_INVALID
Not a valid pen device.
Definition: SDL3pp_pen.h:187
constexpr PenAxis PEN_AXIS_PRESSURE
Pen pressure. Unidirectional: 0 to 1.0.
Definition: SDL3pp_pen.h:137
constexpr PenDeviceType PEN_DEVICE_TYPE_UNKNOWN
Don't know specifics of this pen.
Definition: SDL3pp_pen.h:190
Uint32 PenInputFlags
Pen input flags, as reported by various pen events' pen_state field.
Definition: SDL3pp_pen.h:90
constexpr MouseID PEN_MOUSEID
The MouseID for mouse events simulated with pen input.
Definition: SDL3pp_pen.h:76
PenDeviceType GetPenDeviceType(PenID instance_id)
Get the device type of the given pen.
Definition: SDL3pp_pen.h:214
constexpr PenAxis PEN_AXIS_XTILT
Pen horizontal tilt angle. Bidirectional: -90.0 to 90.0 (left-to-right).
Definition: SDL3pp_pen.h:141
constexpr PenAxis PEN_AXIS_YTILT
Pen vertical tilt angle. Bidirectional: -90.0 to 90.0 (top-to-down).
Definition: SDL3pp_pen.h:144
SDL_PenDeviceType PenDeviceType
An enum that describes the type of a pen device.
Definition: SDL3pp_pen.h:185
constexpr PenAxis PEN_AXIS_COUNT
Total known pen axis types in this version of SDL.
Definition: SDL3pp_pen.h:166
constexpr PenAxis PEN_AXIS_TANGENTIAL_PRESSURE
Pressure from squeezing the pen ("barrel pressure").
Definition: SDL3pp_pen.h:159
constexpr PenAxis PEN_AXIS_ROTATION
Pen barrel rotation.
Definition: SDL3pp_pen.h:153
constexpr PenAxis PEN_AXIS_DISTANCE
Pen distance to drawing surface. Unidirectional: 0.0 to 1.0.
Definition: SDL3pp_pen.h:147
constexpr PenInputFlags PEN_INPUT_ERASER_TIP
eraser tip is used
Definition: SDL3pp_pen.h:110
constexpr PenInputFlags PEN_INPUT_BUTTON_2
button 2 is pressed
Definition: SDL3pp_pen.h:98
constexpr PenInputFlags PEN_INPUT_BUTTON_3
button 3 is pressed
Definition: SDL3pp_pen.h:101
constexpr PenDeviceType PEN_DEVICE_TYPE_DIRECT
Pen touches display.
Definition: SDL3pp_pen.h:193
constexpr PenInputFlags PEN_INPUT_BUTTON_1
button 1 is pressed
Definition: SDL3pp_pen.h:95
constexpr PenInputFlags PEN_INPUT_DOWN
pen is pressed down
Definition: SDL3pp_pen.h:92
SDL_PenAxis PenAxis
Pen axis indices.
Definition: SDL3pp_pen.h:135
::Uint32 Uint32
An unsigned 32-bit integer type.
Definition: SDL3pp_stdinc.h:341
SDL_TouchID TouchID
A unique ID for a touch device.
Definition: SDL3pp_touch.h:45
Main include header for the SDL3pp library.