It is not currently possible to build SDL 2.0.9 with joystick support on Windows when DirectX is disabled. Disabling DirectX results in the cmake variable
SDL_JOYSTICK_WINMM being set (and associated #define in the code) but a compilation failure occurs in
src\joystick\SDL_joystick.c(79): error C2059: syntax error: '}'
Which is due to an empty
SDL_joystick_drivers array. I had a quick look to see if there was an easy fix but there seem to be some missing functions in the
SDL_mmjoystick.c file that would have to be implemented to make it compatible with the
Development environment: Windows 10 Pro 1709 with VS 2015 Pro.
cmake -G "Visual Studio 15 2015 Win64" -DDIRECTX=FALSE -DSDL_STATIC=FALSE ..\
Let me know if there is further info I can provide.