diff options
Diffstat (limited to 'Source/3rdParty/SDL2/src/joystick/windows/SDL_mmjoystick.c')
-rw-r--r-- | Source/3rdParty/SDL2/src/joystick/windows/SDL_mmjoystick.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/Source/3rdParty/SDL2/src/joystick/windows/SDL_mmjoystick.c b/Source/3rdParty/SDL2/src/joystick/windows/SDL_mmjoystick.c index 9fa8665..60e3fcb 100644 --- a/Source/3rdParty/SDL2/src/joystick/windows/SDL_mmjoystick.c +++ b/Source/3rdParty/SDL2/src/joystick/windows/SDL_mmjoystick.c @@ -279,12 +279,6 @@ SDL_SYS_JoystickOpen(SDL_Joystick * joystick, int device_index) return (0); } -/* Function to determine if this joystick is attached to the system right now */ -SDL_bool SDL_SYS_JoystickAttached(SDL_Joystick *joystick) -{ - return SDL_TRUE; -} - static Uint8 TranslatePOV(DWORD value) { @@ -366,10 +360,7 @@ SDL_SYS_JoystickUpdate(SDL_Joystick * joystick) /* joystick hat events */ if (joyinfo.dwFlags & JOY_RETURNPOV) { - Uint8 pos; - - pos = TranslatePOV(joyinfo.dwPOV); - SDL_PrivateJoystickHat(joystick, 0, pos); + SDL_PrivateJoystickHat(joystick, 0, TranslatePOV(joyinfo.dwPOV)); } } |