Skip to content

Commit 7db104f

Browse files
Merge pull request #23 from suve/update-SDL_hints
Update SDL_hints.inc to v3.2.12
2 parents d0e4d81 + 96a0170 commit 7db104f

File tree

2 files changed

+39
-1
lines changed

2 files changed

+39
-1
lines changed

units/SDL3.pas

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ interface
8181
{$I SDL_revision.inc} // 3.1.6-prev
8282
{$I SDL_locale.inc} // 3.2.0
8383
{$I SDL_guid.inc} // 3.1.6-prev
84-
{$I SDL_hints.inc} // 3.2.0
84+
{$I SDL_hints.inc} // 3.2.12
8585
{$I SDL_misc.inc} // 3.2.0
8686
{$I SDL_stdinc.inc} // 3.1.6-prev (unfinished)
8787
{$I SDL_platform.inc} // 3.2.0

units/SDL_hints.inc

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2167,6 +2167,28 @@ const
21672167
}
21682168
SDL_HINT_JOYSTICK_ZERO_CENTERED_DEVICES = 'SDL_JOYSTICK_ZERO_CENTERED_DEVICES';
21692169

2170+
{**
2171+
* A variable containing a list of devices and their desired number of haptic
2172+
* (force feedback) enabled axis.
2173+
*
2174+
* The format of the string is a comma separated list of USB VID/PID pairs in
2175+
* hexadecimal form plus the number of desired axes, e.g.
2176+
*
2177+
* `0xAAAA/0xBBBB/1,0xCCCC/0xDDDD/3`
2178+
*
2179+
* This hint supports a "wildcard" device that will set the number of haptic
2180+
* axes on all initialized haptic devices which were not defined explicitly in
2181+
* this hint.
2182+
*
2183+
* `0xFFFF/0xFFFF/1`
2184+
*
2185+
* This hint should be set before a controller is opened. The number of haptic
2186+
* axes won't exceed the number of real axes found on the device.
2187+
*
2188+
* \since This hint is available since SDL 3.2.5.
2189+
*}
2190+
SDL_HINT_JOYSTICK_HAPTIC_AXES = 'SDL_JOYSTICK_HAPTIC_AXES';
2191+
21702192
{*
21712193
* A variable that controls keycode representation in keyboard events.
21722194
*
@@ -3561,6 +3583,22 @@ const
35613583
}
35623584
SDL_HINT_VIDEO_WIN_D3DCOMPILER = 'SDL_VIDEO_WIN_D3DCOMPILER';
35633585

3586+
{**
3587+
* A variable controlling whether SDL should call XSelectInput() to enable
3588+
* input events on X11 windows wrapped by SDL windows.
3589+
*
3590+
* The variable can be set to the following values:
3591+
*
3592+
* - "0": Don't call XSelectInput(), assuming the native window code has done
3593+
* it already.
3594+
* - "1": Call XSelectInput() to enable input events. (default)
3595+
*
3596+
* This hint should be set before creating a window.
3597+
*
3598+
* \since This hint is available since SDL 3.2.10.
3599+
*}
3600+
SDL_HINT_VIDEO_X11_EXTERNAL_WINDOW_INPUT = 'SDL_VIDEO_X11_EXTERNAL_WINDOW_INPUT';
3601+
35643602
{*
35653603
* A variable controlling whether the X11 _NET_WM_BYPASS_COMPOSITOR hint
35663604
* should be used.

0 commit comments

Comments
 (0)