summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2020-12-04 14:10:00 +0100
committerGitHub <noreply@github.com>2020-12-04 14:10:00 +0100
commit7815bff46ceeaeb590dd2781e3bb89885a579053 (patch)
tree62045a22f971db46846d7a7fa4f3c905d88bb116
parent52b7f260cfc0369847495eecb4ac53e47e2bf9f1 (diff)
parentcf5737acbe95b63a9aa2c741e1c9d408b3d9385f (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.cpp2
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;
}