mirror of https://github.com/encounter/SDL.git
Fixed Android crash when SDL_HIDAPI_DISABLED set to 1
The Java code needs the native functions to be implemented, even if they're not surfaced via the C API. Fixes https://github.com/libsdl-org/SDL/issues/5326
This commit is contained in:
parent
a485ffc3c8
commit
b559a4accc
|
@ -24,8 +24,6 @@
|
||||||
//
|
//
|
||||||
// This layer glues the hidapi API to Android's USB and BLE stack.
|
// This layer glues the hidapi API to Android's USB and BLE stack.
|
||||||
|
|
||||||
#if !SDL_HIDAPI_DISABLED
|
|
||||||
|
|
||||||
#include "SDL_hints.h"
|
#include "SDL_hints.h"
|
||||||
#include "../../core/android/SDL_android.h"
|
#include "../../core/android/SDL_android.h"
|
||||||
|
|
||||||
|
@ -1335,5 +1333,3 @@ int hid_exit(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* SDL_HIDAPI_DISABLED */
|
|
||||||
|
|
Loading…
Reference in New Issue