(This is the legacy documentation for stable SDL2, the current stable version; SDL3 is the current development version.)

SDL_HINT_LINUX_JOYSTICK_CLASSIC

A variable controlling whether to use the classic /dev/input/js* joystick interface or the newer /dev/input/event* joystick interface on Linux

Header File

Defined in SDL_hints.h

Syntax

#define SDL_HINT_LINUX_JOYSTICK_CLASSIC "SDL_LINUX_JOYSTICK_CLASSIC"

Remarks

This variable can be set to the following values:

By default the /dev/input/event* interfaces are used


CategoryAPI, CategoryAPIMacro, CategoryHints