Try to identify old xbox controllers.
This commit is contained in:
parent
17aafae42c
commit
ff5c3ac65e
@ -106,7 +106,9 @@ void GamepadConfig::detectType()
|
|||||||
|
|
||||||
std::string lower = StringUtils::toLowerCase(getName());
|
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;
|
m_type = GP_XBOX;
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user