Skip to content
Permalink
Browse files

Android: Fixed opening previously closed joystick (thanks, Sylvain!).

Fixes Bugzilla #3408.
  • Loading branch information
philippwiesemann committed Aug 17, 2016
1 parent 8097f27 commit c18ff8d2536514666dee4cdbc34083ecb44c9e3a
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/joystick/android/SDL_sysjoystick.c
@@ -538,6 +538,8 @@ SDL_SYS_JoystickUpdate(SDL_Joystick * joystick)
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 */

0 comments on commit c18ff8d

Please sign in to comment.