@@ -2319,6 +2319,56 @@ extern "C" {
23192319 */
23202320#define SDL_HINT_JOYSTICK_WGI "SDL_JOYSTICK_WGI"
23212321
2322+ /**
2323+ * A variable controlling whether the DSU (DualShock UDP) joystick driver should be used.
2324+ *
2325+ * This variable can be set to the following values:
2326+ *
2327+ * - "0": DSU driver is disabled
2328+ * - "1": DSU driver is enabled (default)
2329+ *
2330+ * The DSU driver allows SDL to connect to DSU servers (DS4Windows, BetterJoy, etc.)
2331+ * to receive controller data over UDP, including motion sensors and touchpad data.
2332+ *
2333+ * This hint should be set before SDL is initialized.
2334+ *
2335+ * \since This hint is available since SDL 3.2.0.
2336+ */
2337+ #define SDL_HINT_JOYSTICK_DSU "SDL_JOYSTICK_DSU"
2338+
2339+ /**
2340+ * A variable controlling the DSU server address.
2341+ *
2342+ * The default value is "127.0.0.1"
2343+ *
2344+ * This hint should be set before SDL is initialized.
2345+ *
2346+ * \since This hint is available since SDL 3.2.0.
2347+ */
2348+ #define SDL_HINT_DSU_SERVER "SDL_DSU_SERVER"
2349+
2350+ /**
2351+ * A variable controlling the DSU server port.
2352+ *
2353+ * The default value is "26760"
2354+ *
2355+ * This hint should be set before SDL is initialized.
2356+ *
2357+ * \since This hint is available since SDL 3.2.0.
2358+ */
2359+ #define SDL_HINT_DSU_SERVER_PORT "SDL_DSU_SERVER_PORT"
2360+
2361+ /**
2362+ * A variable controlling the DSU client port.
2363+ *
2364+ * The default value is "0" (auto-select)
2365+ *
2366+ * This hint should be set before SDL is initialized.
2367+ *
2368+ * \since This hint is available since SDL 3.2.0.
2369+ */
2370+ #define SDL_HINT_DSU_CLIENT_PORT "SDL_DSU_CLIENT_PORT"
2371+
23222372/**
23232373 * A variable containing a list of wheel style controllers.
23242374 *
0 commit comments