allow paddle detection for games which also support joysticks

This commit is contained in:
thrust26 2020-02-23 10:03:39 +01:00
parent 80b08348be
commit e1f57f94ae
1 changed files with 3 additions and 0 deletions

View File

@ -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
{ {