src/joystick/emscripten/SDL_sysjoystick.c
changeset 10275 ba7dc3ebb81e
parent 9998 f67cf37e9cd4
child 10279 d1c27f616999
equal deleted inserted replaced
10274:3501018c6df2 10275:ba7dc3ebb81e
   375 
   375 
   376 /* Function to close a joystick after use */
   376 /* Function to close a joystick after use */
   377 void
   377 void
   378 SDL_SYS_JoystickClose(SDL_Joystick * joystick)
   378 SDL_SYS_JoystickClose(SDL_Joystick * joystick)
   379 {
   379 {
       
   380     SDL_joylist_item *item = (SDL_joylist_item *) joystick->hwdata;
       
   381     item->joystick = NULL;
   380 }
   382 }
   381 
   383 
   382 /* Function to perform any system-specific joystick related cleanup */
   384 /* Function to perform any system-specific joystick related cleanup */
   383 void
   385 void
   384 SDL_SYS_JoystickQuit(void)
   386 SDL_SYS_JoystickQuit(void)