From 9cd2e9ec8fc0127393dfce9c0359d500c8c238be Mon Sep 17 00:00:00 2001
From: Edward Rudd <urkle@outoforder.cc>
Date: Tue, 09 Apr 2019 02:22:50 +0000
Subject: [PATCH] updae source to 2.0.9 source

---
 source/src/joystick/windows/SDL_mmjoystick.c |   11 +----------
 1 files changed, 1 insertions(+), 10 deletions(-)

diff --git a/source/src/joystick/windows/SDL_mmjoystick.c b/source/src/joystick/windows/SDL_mmjoystick.c
index 9fa8665..60e3fcb 100644
--- a/source/src/joystick/windows/SDL_mmjoystick.c
+++ b/source/src/joystick/windows/SDL_mmjoystick.c
@@ -279,12 +279,6 @@
     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 @@
 
     /* 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));
     }
 }
 

--
Gitblit v1.9.3