SDL3pp
A slim C++ wrapper for SDL3
Loading...
Searching...
No Matches
SDL3pp_pen.h
1#ifndef SDL3PP_PEN_H_
2#define SDL3PP_PEN_H_
3
4#include <SDL3/SDL_pen.h>
5#include "SDL3pp_mouse.h"
6#include "SDL3pp_touch.h"
7
8namespace SDL {
9
40using PenID = SDL_PenID;
41
47constexpr MouseID PEN_MOUSEID = SDL_PEN_MOUSEID;
48
54constexpr TouchID PEN_TOUCHID = SDL_PEN_TOUCHID;
55
62
64 SDL_PEN_INPUT_DOWN;
65
67 SDL_PEN_INPUT_BUTTON_1;
68
70 SDL_PEN_INPUT_BUTTON_2;
71
73 SDL_PEN_INPUT_BUTTON_3;
74
76 SDL_PEN_INPUT_BUTTON_4;
77
79 SDL_PEN_INPUT_BUTTON_5;
80
82 SDL_PEN_INPUT_ERASER_TIP;
83
99using PenAxis = SDL_PenAxis;
100
102 SDL_PEN_AXIS_PRESSURE;
103
105constexpr PenAxis PEN_AXIS_XTILT = SDL_PEN_AXIS_XTILT;
106
108constexpr PenAxis PEN_AXIS_YTILT = SDL_PEN_AXIS_YTILT;
109
111constexpr PenAxis PEN_AXIS_DISTANCE = SDL_PEN_AXIS_DISTANCE;
112
117constexpr PenAxis PEN_AXIS_ROTATION = SDL_PEN_AXIS_ROTATION;
118
120constexpr PenAxis PEN_AXIS_SLIDER = SDL_PEN_AXIS_SLIDER;
121
124 SDL_PEN_AXIS_TANGENTIAL_PRESSURE;
125
130constexpr PenAxis PEN_AXIS_COUNT = SDL_PEN_AXIS_COUNT;
131
133
134} // namespace SDL
135
136#endif /* SDL3PP_PEN_H_ */
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:171
SDL_PenID PenID
SDL pen instance IDs.
Definition: SDL3pp_pen.h:40
constexpr TouchID PEN_TOUCHID
The TouchID for touch events simulated with pen input.
Definition: SDL3pp_pen.h:54
constexpr PenAxis PEN_AXIS_SLIDER
Pen finger wheel or slider (e.g., Airbrush Pen). Unidirectional: 0 to 1.0.
Definition: SDL3pp_pen.h:120
constexpr PenInputFlags PEN_INPUT_BUTTON_4
button 4 is pressed
Definition: SDL3pp_pen.h:75
constexpr PenInputFlags PEN_INPUT_BUTTON_5
button 5 is pressed
Definition: SDL3pp_pen.h:78
constexpr PenAxis PEN_AXIS_PRESSURE
Pen pressure. Unidirectional: 0 to 1.0.
Definition: SDL3pp_pen.h:101
Uint32 PenInputFlags
Pen input flags, as reported by various pen events' pen_state field.
Definition: SDL3pp_pen.h:61
constexpr MouseID PEN_MOUSEID
The MouseID for mouse events simulated with pen input.
Definition: SDL3pp_pen.h:47
constexpr PenAxis PEN_AXIS_XTILT
Pen horizontal tilt angle. Bidirectional: -90.0 to 90.0 (left-to-right).
Definition: SDL3pp_pen.h:105
constexpr PenAxis PEN_AXIS_YTILT
Pen vertical tilt angle. Bidirectional: -90.0 to 90.0 (top-to-down).
Definition: SDL3pp_pen.h:108
constexpr PenAxis PEN_AXIS_COUNT
Total known pen axis types in this version of SDL.
Definition: SDL3pp_pen.h:130
constexpr PenAxis PEN_AXIS_TANGENTIAL_PRESSURE
Pressure from squeezing the pen ("barrel pressure").
Definition: SDL3pp_pen.h:123
constexpr PenAxis PEN_AXIS_ROTATION
Pen barrel rotation.
Definition: SDL3pp_pen.h:117
constexpr PenAxis PEN_AXIS_DISTANCE
Pen distance to drawing surface. Unidirectional: 0.0 to 1.0.
Definition: SDL3pp_pen.h:111
constexpr PenInputFlags PEN_INPUT_ERASER_TIP
eraser tip is used
Definition: SDL3pp_pen.h:81
constexpr PenInputFlags PEN_INPUT_BUTTON_2
button 2 is pressed
Definition: SDL3pp_pen.h:69
constexpr PenInputFlags PEN_INPUT_BUTTON_3
button 3 is pressed
Definition: SDL3pp_pen.h:72
constexpr PenInputFlags PEN_INPUT_BUTTON_1
button 1 is pressed
Definition: SDL3pp_pen.h:66
constexpr PenInputFlags PEN_INPUT_DOWN
pen is pressed down
Definition: SDL3pp_pen.h:63
SDL_PenAxis PenAxis
Pen axis indices.
Definition: SDL3pp_pen.h:99
Uint32 Uint32
An unsigned 32-bit integer type.
Definition: SDL3pp_stdinc.h:325
SDL_TouchID TouchID
A unique ID for a touch device.
Definition: SDL3pp_touch.h:43
Main include header for the SDL3pp library.