Showing the changes to src/core/util_hid.cpp (1 of 1 file). Show all
Unified · Split
| @@ -5018,7 +5018,7 @@ void Joystick_init() · 5017 unmodified lines | |||
| 5018 | if( lpdi->EnumDevices( DIDEVTYPE_JOYSTICK, DIEnumJoystickProc, | 5018 | if( lpdi->EnumDevices( DIDEVTYPE_JOYSTICK, DIEnumJoystickProc, |
| 5019 | #else | 5019 | #else |
| 5020 | // fix 1.5.0.1 (Spencer 2023): use DI8DEVCLASS_GAMECTRL instead of DI8DEVTYPE_JOYSTICK | 5020 | // fix 1.5.0.1 (Spencer 2023): use DI8DEVCLASS_GAMECTRL instead of DI8DEVTYPE_JOYSTICK |
| 5021 | // cf. EnumDevices documentation | 5021 | // cf. EnumDevices documentation https://learn.microsoft.com/en-us/previous-versions/windows/desktop/ee417804(v=vs.85) |
| 5022 | // this seems to fix joystick usage in general, but Xbox One controller still fails | 5022 | // this seems to fix joystick usage in general, but Xbox One controller still fails |
| 5023 | //if (lpdi->EnumDevices(DI8DEVTYPE_JOYSTICK, DIEnumJoystickProc, | 5023 | //if (lpdi->EnumDevices(DI8DEVTYPE_JOYSTICK, DIEnumJoystickProc, |
| 5024 | if( lpdi->EnumDevices( DI8DEVCLASS_GAMECTRL, DIEnumJoystickProc, | 5024 | if( lpdi->EnumDevices( DI8DEVCLASS_GAMECTRL, DIEnumJoystickProc, |