Try to identify old xbox controllers.

This commit is contained in:
hiker 2014-11-03 12:45:19 +11:00
parent 17aafae42c
commit ff5c3ac65e

View File

@ -106,7 +106,9 @@ void GamepadConfig::detectType()
std::string lower = StringUtils::toLowerCase(getName());
if(lower.find("xbox")!=std::string::npos)
// xbox appears to be xbox 360, x-box the previous gamepad
if(lower.find("xbox")!=std::string::npos ||
lower.find("x-box")!=std::string::npos )
{
m_type = GP_XBOX;
return;