Added support for /dev/input/js* on Linux

Added the hint SDL_HINT_LINUX_JOYSTICK_CLASSIC to control whether /dev/input/js* or /dev/input/event* are used as joystick devices

Added the hint SDL_HINT_JOYSTICK_DEVICE to allow the user to specify devices t
hat will be opened in addition to the normal joystick detection

Fixes https://github.com/libsdl-org/SDL/issues/1314
Fixes https://github.com/libsdl-org/SDL/issues/1727
Fixes https://github.com/libsdl-org/SDL/issues/1981
Closes https://github.com/libsdl-org/SDL/pull/4727
This commit is contained in:
Sam Lantinga
2021-11-10 20:02:25 -08:00
parent 65a50b2430
commit 1c78b08007
4 changed files with 213 additions and 60 deletions

View File

@@ -5,6 +5,10 @@ This is a list of major changes in SDL's version history.
2.0.18:
---------------------------------------------------------------------------
Linux:
* Added the hint SDL_HINT_LINUX_JOYSTICK_CLASSIC to control whether /dev/input/js* or /dev/input/event* are used as joystick devices
* Added the hint SDL_HINT_JOYSTICK_DEVICE to allow the user to specify devices that will be opened in addition to the normal joystick detection
Android:
* Added support for audio output and capture using AAudio on Android 8.1 and newer