src/joystick/windows/SDL_windowsjoystick.c
changeset 12090 c3209fca27b2
parent 12088 399cc39583cc
child 12201 8bdc4d340419
     1.1 --- a/src/joystick/windows/SDL_windowsjoystick.c	Thu Aug 09 16:03:29 2018 -0700
     1.2 +++ b/src/joystick/windows/SDL_windowsjoystick.c	Thu Aug 09 16:03:50 2018 -0700
     1.3 @@ -463,13 +463,6 @@
     1.4      }
     1.5  }
     1.6  
     1.7 -/* return true if this joystick is plugged in right now */
     1.8 -static SDL_bool 
     1.9 -WINDOWS_JoystickIsAttached(SDL_Joystick * joystick)
    1.10 -{
    1.11 -    return joystick->hwdata && !joystick->hwdata->removed;
    1.12 -}
    1.13 -
    1.14  static int
    1.15  WINDOWS_JoystickRumble(SDL_Joystick * joystick, Uint16 low_frequency_rumble, Uint16 high_frequency_rumble, Uint32 duration_ms)
    1.16  {
    1.17 @@ -483,7 +476,7 @@
    1.18  static void
    1.19  WINDOWS_JoystickUpdate(SDL_Joystick * joystick)
    1.20  {
    1.21 -    if (!joystick->hwdata || joystick->hwdata->removed) {
    1.22 +    if (!joystick->hwdata) {
    1.23          return;
    1.24      }
    1.25  
    1.26 @@ -492,10 +485,6 @@
    1.27      } else {
    1.28          SDL_DINPUT_JoystickUpdate(joystick);
    1.29      }
    1.30 -
    1.31 -    if (joystick->hwdata->removed) {
    1.32 -        joystick->force_recentering = SDL_TRUE;
    1.33 -    }
    1.34  }
    1.35  
    1.36  /* Function to close a joystick after use */
    1.37 @@ -558,7 +547,6 @@
    1.38      WINDOWS_JoystickGetDeviceGUID,
    1.39      WINDOWS_JoystickGetDeviceInstanceID,
    1.40      WINDOWS_JoystickOpen,
    1.41 -    WINDOWS_JoystickIsAttached,
    1.42      WINDOWS_JoystickRumble,
    1.43      WINDOWS_JoystickUpdate,
    1.44      WINDOWS_JoystickClose,