src/joystick/android/SDL_sysjoystick.c
changeset 10278 74c39dbe8d30
parent 10274 3501018c6df2
child 10281 cb13d22b7f09
equal deleted inserted replaced
10277:29d7289e9055 10278:74c39dbe8d30
   537 /* Function to close a joystick after use */
   537 /* Function to close a joystick after use */
   538 void
   538 void
   539 SDL_SYS_JoystickClose(SDL_Joystick * joystick)
   539 SDL_SYS_JoystickClose(SDL_Joystick * joystick)
   540 {
   540 {
   541     SDL_joylist_item *item = (SDL_joylist_item *) joystick->hwdata;
   541     SDL_joylist_item *item = (SDL_joylist_item *) joystick->hwdata;
   542     item->joystick = NULL;
   542     if (item) {
       
   543         item->joystick = NULL;
       
   544     }
   543 }
   545 }
   544 
   546 
   545 /* Function to perform any system-specific joystick related cleanup */
   547 /* Function to perform any system-specific joystick related cleanup */
   546 void
   548 void
   547 SDL_SYS_JoystickQuit(void)
   549 SDL_SYS_JoystickQuit(void)