Skip to content

Commit bcc42c7

Browse files
committed
Update SDL_pen.inc to match SDL 3.2.20
1 parent 4f60715 commit bcc42c7

File tree

2 files changed

+20
-4
lines changed

2 files changed

+20
-4
lines changed

units/SDL3.pas

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,8 @@ interface
106106
{$I SDL_joystick.inc} // 3.1.6-prev
107107
{$I SDL_gamepad.inc} // 3.2.0
108108
{$I SDL_haptic.inc} // 3.2.0
109-
{$I SDL_pen.inc} // 3.1.6-prev
110109
{$I SDL_touch.inc} // 3.1.6-prev
110+
{$I SDL_pen.inc} // 3.2.20
111111
{$I SDL_camera.inc} // 3.1.6-prev
112112
{$I SDL_events.inc} // 3.2.20
113113
{$I SDL_init.inc} // 3.2.20

units/SDL_pen.inc

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,18 +32,34 @@
3232
* consistent as long as SDL can recognize a tool to be the same pen; but if a
3333
* pen physically leaves the area and returns, it might get a new ID.
3434
*
35-
* \since This datatype is available since SDL 3.1.3.
35+
* \since This datatype is available since SDL 3.2.0.
3636
}
3737
type
3838
PPSDL_PenID = ^PSDL_PenID;
3939
PSDL_PenID = ^TSDL_PenID;
4040
TSDL_PenID = cuint32;
4141

42+
const
43+
{*
44+
* The SDL_MouseID for mouse events simulated with pen input.
45+
*
46+
* \since This macro is available since SDL 3.2.0.
47+
*}
48+
SDL_PEN_MOUSEID = TSDL_MouseID(-2);
49+
50+
{*
51+
* The SDL_TouchID for touch events simulated with pen input.
52+
*
53+
* \since This macro is available since SDL 3.2.0.
54+
*}
55+
SDL_PEN_TOUCHID = TSDL_TouchID(-2);
56+
4257
{*
4358
* Pen input flags, as reported by various pen events' `pen_state` field.
4459
*
45-
* \since This datatype is available since SDL 3.1.3.
60+
* \since This datatype is available since SDL 3.2.0.
4661
}
62+
type
4763
PPSDL_PenInputFlags = ^PSDL_PenInputFlags;
4864
PSDL_PenInputFlags = ^TSDL_PenInputFlags;
4965
TSDL_PenInputFlags = cuint32;
@@ -70,7 +86,7 @@ const
7086
*
7187
* `SDL_sinf(xtilt * SDL_PI_F / 180.0)`.
7288
*
73-
* \since This enum is available since SDL 3.1.3
89+
* \since This enum is available since SDL 3.2.0.
7490
}
7591
type
7692
PPSDL_PenAxis = ^PSDL_PenAxis;

0 commit comments

Comments
 (0)