Closed GWRon closed 11 months ago
Needed to comment the same out in the corresponding .c file
And i needed to add this to "sdl.mod/sdl.mod/linux_source.bmx":
Import "SDL/src/events/SDL_keysym_to_scancode.c"
I guess the actual issue is this
if(LINUX AND HAVE_LINUX_INPUT_H AND NOT ANDROID)
set(SDL_JOYSTICK_LINUX 1)
file(GLOB JOYSTICK_SOURCES ${SDL2_SOURCE_DIR}/src/joystick/linux/*.c ${SDL2_SOURCE_DIR}/src/joystick/steam/*.c)
list(APPEND SOURCE_FILES ${JOYSTICK_SOURCES})
set(HAVE_SDL_JOYSTICK TRUE)
endif()
we shouldn't even include the joystick stuff is linux input is not available
Should be fixed with the commit faff66039645b96c15ff22844053b0949364c3dc
When I try to build the current sdl.mod it fails for me:
The original issue was fixed in 2.25 https://github.com/libsdl-org/SDL/commit/71fb91f7e43c5f046a037bf5ca59214d93fe2d51
Yet a commit some months ago brought it back: https://github.com/libsdl-org/SDL/commit/9f8b68a2785563031473011379878bb63ed5d3a3
Maybe it just misses some config adjustments.
a temporary fix is to edit sdl.mod/sdl.mod/SDL/src/core/linux/SDL_evdev_capabilities.h and change
to