Android: Fixed opening previously closed joystick (thanks, Sylvain!).
authorPhilipp Wiesemann <philipp.wiesemann@arcor.de>
Wed, 17 Aug 2016 21:04:32 +0200
changeset 10274 3501018c6df2
parent 10273 42768c568a50
child 10275 ba7dc3ebb81e
Android: Fixed opening previously closed joystick (thanks, Sylvain!). Fixes Bugzilla #3408.
src/joystick/android/SDL_sysjoystick.c
--- a/src/joystick/android/SDL_sysjoystick.c	Mon Aug 08 12:17:53 2016 -0700
+++ b/src/joystick/android/SDL_sysjoystick.c	Wed Aug 17 21:04:32 2016 +0200
@@ -538,6 +538,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 */