Added driving joystick type to windows joystick handling

(cherry picked from commit cf5737acbe)
This commit is contained in:
Bastiaan Olij 2020-12-04 23:28:57 +11:00 committed by Rémi Verschelde
parent d5ea412848
commit 94fff8abb9
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -158,7 +158,7 @@ bool JoypadWindows::setup_dinput_joypad(const DIDEVICEINSTANCE *instance) {
const DWORD devtype = (instance->dwDevType & 0xFF);
if ((devtype != DI8DEVTYPE_JOYSTICK) && (devtype != DI8DEVTYPE_GAMEPAD) && (devtype != DI8DEVTYPE_1STPERSON)) {
if ((devtype != DI8DEVTYPE_JOYSTICK) && (devtype != DI8DEVTYPE_GAMEPAD) && (devtype != DI8DEVTYPE_1STPERSON) && (devtype != DI8DEVTYPE_DRIVING)) {
return false;
}