Skip to content

Android app crash when set SDL_HIDAPI_DISABLED to 1 #5326

@j0ng4b

Description

@j0ng4b

When I compile SDL2 with SDL_HIDAPI_DISABLED equals 1 and start the application it crash due this line:
mHIDDeviceManager = HIDDeviceManager.acquire(this); in SDLActivity.java. Setting mHIDDeviceManager = null; solves the crash.

Seems that when use HIDDeviceManager the call to native function is the problem, this functions are not defined due SDL_HIDAPI_DISABLED.

My suggest is set some stub function when SDL_HIDAPI_DISABLED is 1.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions