Added an exception to the "not a joystick" logic for the RedOctane USB Pad.

This commit is contained in:
David Brinovec
2020-11-27 17:24:25 -05:00
parent 95d782d3fc
commit da92003005
@@ -132,9 +132,14 @@ bool EventDevice::Open( RString sFile, InputDevice dev )
if( !BitIsSet(iABSMask, ABS_X) && !BitIsSet(iABSMask, ABS_THROTTLE) && !BitIsSet(iABSMask, ABS_WHEEL) ) if( !BitIsSet(iABSMask, ABS_X) && !BitIsSet(iABSMask, ABS_THROTTLE) && !BitIsSet(iABSMask, ABS_WHEEL) )
{ {
LOG->Info( " Not a joystick; ignored" ); LOG->Info( " Not a joystick; ignoring [%s]",m_sName.c_str() );
Close(); if(m_sName.compare("RedOctane USB Pad") == 0)
return false; {
LOG->Info("RedOctane USB Pad detected, making an exception.");
} else {
Close();
return false;
}
} }
uint8_t iKeyMask[KEY_MAX/8 + 1]; uint8_t iKeyMask[KEY_MAX/8 + 1];