summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastiaan Olij <mux213@gmail.com>2020-12-04 23:28:57 +1100
committerBastiaan Olij <mux213@gmail.com>2020-12-04 23:31:19 +1100
commitcf5737acbe95b63a9aa2c741e1c9d408b3d9385f (patch)
tree62045a22f971db46846d7a7fa4f3c905d88bb116
parent52b7f260cfc0369847495eecb4ac53e47e2bf9f1 (diff)
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;
}