mirror of https://github.com/encounter/SDL.git
emscripten: SDL_PrivateJoystickAdded() wants an instance id, not device index.
This commit is contained in:
parent
e5476c653d
commit
1829692753
|
@ -97,7 +97,7 @@ Emscripten_JoyStickConnected(int eventType, const EmscriptenGamepadEvent *gamepa
|
|||
|
||||
++numjoysticks;
|
||||
|
||||
SDL_PrivateJoystickAdded(numjoysticks - 1);
|
||||
SDL_PrivateJoystickAdded(item->device_instance);
|
||||
|
||||
#ifdef DEBUG_JOYSTICK
|
||||
SDL_Log("Number of joysticks is %d", numjoysticks);
|
||||
|
|
Loading…
Reference in New Issue