From da9200300555950f71fae805804bbfc693484624 Mon Sep 17 00:00:00 2001 From: David Brinovec Date: Fri, 27 Nov 2020 17:24:25 -0500 Subject: [PATCH] Added an exception to the "not a joystick" logic for the RedOctane USB Pad. --- src/arch/InputHandler/InputHandler_Linux_Event.cpp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/arch/InputHandler/InputHandler_Linux_Event.cpp b/src/arch/InputHandler/InputHandler_Linux_Event.cpp index 3085a2ceaa..a3a8a34668 100644 --- a/src/arch/InputHandler/InputHandler_Linux_Event.cpp +++ b/src/arch/InputHandler/InputHandler_Linux_Event.cpp @@ -132,9 +132,14 @@ bool EventDevice::Open( RString sFile, InputDevice dev ) if( !BitIsSet(iABSMask, ABS_X) && !BitIsSet(iABSMask, ABS_THROTTLE) && !BitIsSet(iABSMask, ABS_WHEEL) ) { - LOG->Info( " Not a joystick; ignored" ); - Close(); - return false; + LOG->Info( " Not a joystick; ignoring [%s]",m_sName.c_str() ); + if(m_sName.compare("RedOctane USB Pad") == 0) + { + LOG->Info("RedOctane USB Pad detected, making an exception."); + } else { + Close(); + return false; + } } uint8_t iKeyMask[KEY_MAX/8 + 1];