diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2020-12-04 14:10:00 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-04 14:10:00 +0100 |
commit | 7815bff46ceeaeb590dd2781e3bb89885a579053 (patch) | |
tree | 62045a22f971db46846d7a7fa4f3c905d88bb116 | |
parent | 52b7f260cfc0369847495eecb4ac53e47e2bf9f1 (diff) | |
parent | cf5737acbe95b63a9aa2c741e1c9d408b3d9385f (diff) |
Merge pull request #44082 from BastiaanOlij/add_driving_joytype
Added driving joystick type to windows joystick handling
-rw-r--r-- | platform/windows/joypad_windows.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/windows/joypad_windows.cpp b/platform/windows/joypad_windows.cpp index 2a5c8a7763..ae5e846dac 100644 --- a/platform/windows/joypad_windows.cpp +++ b/platform/windows/joypad_windows.cpp @@ -151,7 +151,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; } |