Skip to content
Permalink
Browse files

emscripten: SDL_PrivateJoystickAdded() wants an instance id, not devi…

…ce index.
  • Loading branch information
icculus committed Dec 15, 2018
1 parent e5476c6 commit 1829692753cc60d9bc31c9ae5a6caebc74ee8c6a
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/joystick/emscripten/SDL_sysjoystick.c
@@ -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);

0 comments on commit 1829692

Please sign in to comment.