summaryrefslogtreecommitdiff
path: root/src/gui/widgets/tabs
diff options
context:
space:
mode:
authorewewukek <ewewukek@gmail.com>2024-01-10 15:57:50 +0300
committerJesusalva Jesusalva <jesusalva@themanaworld.org>2024-02-13 02:22:12 +0000
commita38a1ed6fab0cb16e8c7e340a2230cf58db51d3c (patch)
treec73e08ba0a94e14dad1eba18d6f8fab57ee27ebd /src/gui/widgets/tabs
parent1c3f0b8e325883ae3ccacdb7bf453daf6c133001 (diff)
downloadmv-a38a1ed6fab0cb16e8c7e340a2230cf58db51d3c.tar.gz
mv-a38a1ed6fab0cb16e8c7e340a2230cf58db51d3c.tar.bz2
mv-a38a1ed6fab0cb16e8c7e340a2230cf58db51d3c.tar.xz
mv-a38a1ed6fab0cb16e8c7e340a2230cf58db51d3c.zip
Hotplug support for joysticks
Diffstat (limited to 'src/gui/widgets/tabs')
-rw-r--r--src/gui/widgets/tabs/setup_joystick.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/widgets/tabs/setup_joystick.cpp b/src/gui/widgets/tabs/setup_joystick.cpp
index 8215390de..ab623b901 100644
--- a/src/gui/widgets/tabs/setup_joystick.cpp
+++ b/src/gui/widgets/tabs/setup_joystick.cpp
@@ -123,12 +123,12 @@ void Setup_Joystick::action(const ActionEvent &event)
}
else if (source == mDetectButton)
{
+ Joystick::detect();
+ Joystick::getNames(mNamesModel->getNames());
if (joystick != nullptr)
- {
- joystick->reload();
- Joystick::getNames(mNamesModel->getNames());
mNamesDropDown->setSelected(joystick->getNumber());
- }
+ else
+ mNamesDropDown->setSelected(0);
}
else
{