# HG changeset patch # User Philipp Wiesemann # Date 1471460690 -7200 # Node ID ba7dc3ebb81e5dbc48960e2b110486e2db7c2fc1 # Parent 3501018c6df2a6c041b77a70f49ce551a5a0be37 Emscripten: Fixed opening previously closed joystick. diff -r 3501018c6df2 -r ba7dc3ebb81e src/joystick/emscripten/SDL_sysjoystick.c --- a/src/joystick/emscripten/SDL_sysjoystick.c Wed Aug 17 21:04:32 2016 +0200 +++ b/src/joystick/emscripten/SDL_sysjoystick.c Wed Aug 17 21:04:50 2016 +0200 @@ -377,6 +377,8 @@ void SDL_SYS_JoystickClose(SDL_Joystick * joystick) { + SDL_joylist_item *item = (SDL_joylist_item *) joystick->hwdata; + item->joystick = NULL; } /* Function to perform any system-specific joystick related cleanup */