- Disable compiling hidapi in SDL:
@@ -136,6 +136,7 @@
/* Enable various input drivers */
#define SDL_JOYSTICK_ANDROID 1
#define SDL_JOYSTICK_HIDAPI 1
+ #undef SDL_JOYSTICK_HIDAPI
#define SDL_HAPTIC_ANDROID 1
/* Enable sensor driver */
//mHIDDeviceManager = HIDDeviceManager.acquire(this);
mHIDDeviceManager = null;
This is mostly due to android docs being horrible on how to make a gradle project without Android Studio (which is total shit in the face of even moderately sized C++ project) which would include multiple native dependencies (like SDL2, SDL2_mixer, SDL2_image and SDL_gfx with SDL2 patch) and put those dependencies’ libs and stuff where they belong.
And also SDL java glue throwing useless exceptions when hidapi can’t be loaded. That is a bug in SDL as far as I’m concerned.