mirror of https://github.com/stella-emu/stella.git
allow paddle detection for games which also support joysticks
This commit is contained in:
parent
80b08348be
commit
e1f57f94ae
|
@ -73,6 +73,9 @@ Controller::Type ControllerDetector::autodetectPort(const uInt8* image, size_t s
|
||||||
type = Controller::Type::Genesis;
|
type = Controller::Type::Genesis;
|
||||||
else if(isProbablyLightGun(image, size, port))
|
else if(isProbablyLightGun(image, size, port))
|
||||||
type = Controller::Type::Lightgun;
|
type = Controller::Type::Lightgun;
|
||||||
|
// add check for games which support joystick and paddles, prefer paddles here
|
||||||
|
else if(usesPaddle(image, size, port, settings))
|
||||||
|
type = Controller::Type::Paddles;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue