From e1f57f94aed7a4123f61ecafa298d542cb15b10c Mon Sep 17 00:00:00 2001 From: thrust26 Date: Sun, 23 Feb 2020 10:03:39 +0100 Subject: [PATCH] allow paddle detection for games which also support joysticks --- src/emucore/ControllerDetector.cxx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/emucore/ControllerDetector.cxx b/src/emucore/ControllerDetector.cxx index 863721b46..023302d81 100644 --- a/src/emucore/ControllerDetector.cxx +++ b/src/emucore/ControllerDetector.cxx @@ -73,6 +73,9 @@ Controller::Type ControllerDetector::autodetectPort(const uInt8* image, size_t s type = Controller::Type::Genesis; else if(isProbablyLightGun(image, size, port)) 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 {