ソースを参照

SDL_xinputjoystick.c: commented out GuessXInputDevice()

Not used since commit 277b033e78235d6ffad7525a1fb9acfef3a43433.
Ozkan Sezer 3 年 前
コミット
973a677a2d
1 ファイル変更2 行追加1 行削除
  1. 2 1
      src/joystick/windows/SDL_xinputjoystick.c

+ 2 - 1
src/joystick/windows/SDL_xinputjoystick.c

@@ -127,6 +127,7 @@ GetXInputName(const Uint8 userid, BYTE SubType)
     return name;
     return name;
 }
 }
 
 
+#if 0
 /* We can't really tell what device is being used for XInput, but we can guess
 /* We can't really tell what device is being used for XInput, but we can guess
    and we'll be correct for the case where only one device is connected.
    and we'll be correct for the case where only one device is connected.
  */
  */
@@ -134,7 +135,6 @@ static void
 GuessXInputDevice(Uint8 userid, Uint16 *pVID, Uint16 *pPID, Uint16 *pVersion)
 GuessXInputDevice(Uint8 userid, Uint16 *pVID, Uint16 *pPID, Uint16 *pVersion)
 {
 {
 #if !defined(__WINRT__) && !defined(__XBOXONE__) && !defined(__XBOXSERIES__) /* TODO: remove this ifndef __WINRT__ block, but only after integrating with UWP/WinRT's HID API */
 #if !defined(__WINRT__) && !defined(__XBOXONE__) && !defined(__XBOXSERIES__) /* TODO: remove this ifndef __WINRT__ block, but only after integrating with UWP/WinRT's HID API */
-
     PRAWINPUTDEVICELIST devices = NULL;
     PRAWINPUTDEVICELIST devices = NULL;
     UINT i, j, device_count = 0;
     UINT i, j, device_count = 0;
 
 
@@ -239,6 +239,7 @@ GuessXInputDevice(Uint8 userid, Uint16 *pVID, Uint16 *pPID, Uint16 *pVersion)
     *pPID = 0x02fd; /* XBox One S Bluetooth */
     *pPID = 0x02fd; /* XBox One S Bluetooth */
     *pVersion = 0;
     *pVersion = 0;
 }
 }
+#endif /* #if 0 */
 
 
 static void
 static void
 AddXInputDevice(Uint8 userid, BYTE SubType, JoyStick_DeviceData **pContext)
 AddXInputDevice(Uint8 userid, BYTE SubType, JoyStick_DeviceData **pContext)