mirror of https://github.com/stella-emu/stella.git
minor fix for Global Hotkeys and Stelladaptors
This commit is contained in:
parent
7b87f237b3
commit
8bc8b6fb0b
|
@ -265,7 +265,6 @@ bool PhysicalJoystickHandler::mapStelladaptors(const string& saport, int ID)
|
||||||
erased = true;
|
erased = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
//if(BSPF::startsWithIgnoreCase(_stick->name, "Stelladaptor"))
|
|
||||||
if(BSPF::containsIgnoreCase(_stick->name, "Stelladaptor"))
|
if(BSPF::containsIgnoreCase(_stick->name, "Stelladaptor"))
|
||||||
{
|
{
|
||||||
if(saOrder[saCount] == 1)
|
if(saOrder[saCount] == 1)
|
||||||
|
@ -274,8 +273,7 @@ bool PhysicalJoystickHandler::mapStelladaptors(const string& saport, int ID)
|
||||||
_stick->type = PhysicalJoystick::Type::RIGHT_STELLADAPTOR;
|
_stick->type = PhysicalJoystick::Type::RIGHT_STELLADAPTOR;
|
||||||
found = true;
|
found = true;
|
||||||
}
|
}
|
||||||
else //if(BSPF::startsWithIgnoreCase(_stick->name, "2600-daptor"))
|
else if(BSPF::containsIgnoreCase(_stick->name, "2600-daptor"))
|
||||||
if(BSPF::containsIgnoreCase(_stick->name, "2600-daptor"))
|
|
||||||
{
|
{
|
||||||
if(saOrder[saCount] == 1)
|
if(saOrder[saCount] == 1)
|
||||||
_stick->type = PhysicalJoystick::Type::LEFT_2600DAPTOR;
|
_stick->type = PhysicalJoystick::Type::LEFT_2600DAPTOR;
|
||||||
|
@ -310,8 +308,8 @@ bool PhysicalJoystickHandler::hasStelladaptors() const
|
||||||
if(pos != std::string::npos)
|
if(pos != std::string::npos)
|
||||||
_joyptr->name.erase(pos);
|
_joyptr->name.erase(pos);
|
||||||
|
|
||||||
if(BSPF::startsWithIgnoreCase(_joyptr->name, "Stelladaptor")
|
if(BSPF::containsIgnoreCase(_joyptr->name, "Stelladaptor")
|
||||||
|| BSPF::startsWithIgnoreCase(_joyptr->name, "2600-daptor"))
|
|| BSPF::containsIgnoreCase(_joyptr->name, "2600-daptor"))
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue