From 9a0f8a1c737499d72b2f749df79555939034a2bf Mon Sep 17 00:00:00 2001 From: Thomas Jentzsch Date: Mon, 4 Oct 2021 10:07:42 +0200 Subject: [PATCH] fixed QuadTari controller settings --- src/gui/GameInfoDialog.cxx | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/gui/GameInfoDialog.cxx b/src/gui/GameInfoDialog.cxx index e825cfe97..917996fdc 100644 --- a/src/gui/GameInfoDialog.cxx +++ b/src/gui/GameInfoDialog.cxx @@ -1130,7 +1130,7 @@ void GameInfoDialog::updateControllerStates() { label = (!swapPorts ? instance().console().leftController().name() : instance().console().rightController().name()) + " detected"; - if(BSPF::startsWithIgnoreCase(label, "QUADTARI")) + if(BSPF::startsWithIgnoreCase(label, "QT")) label = "QuadTari detected"; // remove plugged-in controller names } else if(autoDetect) @@ -1149,7 +1149,7 @@ void GameInfoDialog::updateControllerStates() { label = (!swapPorts ? instance().console().rightController().name() : instance().console().leftController().name()) + " detected"; - if(BSPF::startsWithIgnoreCase(label, "QUADTARI")) + if(BSPF::startsWithIgnoreCase(label, "QT")) label = "QuadTari detected"; // remove plugged-in controller names } else if(autoDetect) @@ -1193,7 +1193,9 @@ void GameInfoDialog::updateControllerStates() myQuadTariButton->setEnabled(BSPF::startsWithIgnoreCase(contrLeft, "QUADTARI") || BSPF::startsWithIgnoreCase(contrRight, "QUADTARI") || BSPF::startsWithIgnoreCase(myLeftPortDetected->getLabel(), "QUADTARI") || - BSPF::startsWithIgnoreCase(myRightPortDetected->getLabel(), "QUADTARI")); + BSPF::startsWithIgnoreCase(myLeftPortDetected->getLabel(), "QT") || + BSPF::startsWithIgnoreCase(myRightPortDetected->getLabel(), "QUADTARI") || + BSPF::startsWithIgnoreCase(myRightPortDetected->getLabel(), "QT")); mySwapPorts->setEnabled(enableSelectControl); mySwapPaddles->setEnabled(enablePaddles); @@ -1422,9 +1424,11 @@ void GameInfoDialog::handleCommand(CommandSender* sender, int cmd, { bool enableLeft = BSPF::startsWithIgnoreCase(myLeftPort->getSelectedTag().toString(), "QUADTARI") || + BSPF::startsWithIgnoreCase(myLeftPortDetected->getLabel(), "QT") || BSPF::startsWithIgnoreCase(myLeftPortDetected->getLabel(), "QUADTARI"); bool enableRight = BSPF::startsWithIgnoreCase(myRightPort->getSelectedTag().toString(), "QUADTARI") || + BSPF::startsWithIgnoreCase(myRightPortDetected->getLabel(), "QT") || BSPF::startsWithIgnoreCase(myRightPortDetected->getLabel(), "QUADTARI"); if(!myQuadTariDialog)