Skip to content

Commit

Permalink
Allow Android haptics to work when SDL is reinitialized (thanks Rachel!)
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Oct 11, 2018
1 parent 0e5a3f6 commit 9a98e4b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/haptic/android/SDL_syshaptic.c
Expand Up @@ -195,6 +195,10 @@ SDL_SYS_HapticClose(SDL_Haptic * haptic)
void
SDL_SYS_HapticQuit(void)
{
/* We don't have any way to scan for joysticks (and their vibrators) at init, so don't wipe the list
* of joysticks here in case this is a reinit.
*/
#if 0
SDL_hapticlist_item *item = NULL;
SDL_hapticlist_item *next = NULL;

Expand All @@ -206,6 +210,7 @@ SDL_SYS_HapticQuit(void)
SDL_hapticlist = SDL_hapticlist_tail = NULL;
numhaptics = 0;
return;
#endif
}


Expand Down

0 comments on commit 9a98e4b

Please sign in to comment.