diff --git a/board/opendingux/package/sdl2/sdl2.mk b/board/opendingux/package/sdl2/sdl2.mk index 0da26b73cacc..89c6256d79f4 100644 --- a/board/opendingux/package/sdl2/sdl2.mk +++ b/board/opendingux/package/sdl2/sdl2.mk @@ -1,2 +1,6 @@ SDL2_CONF_OPTS += --enable-joystick-translator SDL2_AUTORECONF = YES +define SDL2_RUN_AUTOGEN + cd $(@D) && PATH=$(BR_PATH) ./autogen.sh +endef +SDL2_PRE_CONFIGURE_HOOKS += SDL2_RUN_AUTOGEN diff --git a/board/opendingux/patches/sdl2/0001-SDL_joystick-Add-translator-joystick-driver.patch b/board/opendingux/patches/sdl2/0001-SDL_joystick-Add-translator-joystick-driver.patch index 3170d0b20df5..6e0116cb667d 100644 --- a/board/opendingux/patches/sdl2/0001-SDL_joystick-Add-translator-joystick-driver.patch +++ b/board/opendingux/patches/sdl2/0001-SDL_joystick-Add-translator-joystick-driver.patch @@ -276,7 +276,7 @@ new file mode 100644 index 0000000..75e3f6e --- /dev/null +++ b/src/joystick/translator/SDL_translator.c -@@ -0,0 +1,492 @@ +@@ -0,0 +1,499 @@ +/* + Simple DirectMedia Layer + Copyright (C) 2021 Paul Cercueil @@ -743,12 +743,19 @@ index 0000000..75e3f6e + return SDL_Unsupported(); +} + ++static const char * ++TRANSLATOR_JoystickGetDevicePath(int device_index) ++{ ++ return NULL; ++} ++ +SDL_JoystickDriver SDL_TRANSLATOR_JoystickDriver = +{ + TRANSLATOR_JoystickInit, + TRANSLATOR_JoystickGetCount, + TRANSLATOR_JoystickDetect, + TRANSLATOR_JoystickGetDeviceName, ++ TRANSLATOR_JoystickGetDevicePath, + TRANSLATOR_JoystickGetDevicePlayerIndex, + TRANSLATOR_JoystickSetDevicePlayerIndex, + TRANSLATOR_JoystickGetDeviceGUID,