aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/yuzu/configuration/configure_ringcon.cpp
diff options
context:
space:
mode:
authorNarr the Reg <[email protected]>2023-01-13 13:39:33 -0600
committerNarr the Reg <[email protected]>2023-01-19 18:05:23 -0600
commit4a307a7b3aa3afea7d62674f6cf40b76f3ffb5e3 (patch)
treec104ff9a8a48cf29fd3dc67c84f5af71224744f7 /src/yuzu/configuration/configure_ringcon.cpp
parentb40aefb39ea8b4259acdbe0616790c2234d9b9ef (diff)
downloadyuzu-android-4a307a7b3aa3afea7d62674f6cf40b76f3ffb5e3.tar.gz
yuzu-android-4a307a7b3aa3afea7d62674f6cf40b76f3ffb5e3.zip
core: hid: Only set the polling mode to the correct side
Diffstat (limited to 'src/yuzu/configuration/configure_ringcon.cpp')
-rw-r--r--src/yuzu/configuration/configure_ringcon.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/yuzu/configuration/configure_ringcon.cpp b/src/yuzu/configuration/configure_ringcon.cpp
index 697c36fb4..1275f10c8 100644
--- a/src/yuzu/configuration/configure_ringcon.cpp
+++ b/src/yuzu/configuration/configure_ringcon.cpp
@@ -214,7 +214,8 @@ ConfigureRingController::ConfigureRingController(QWidget* parent,
}
ConfigureRingController::~ConfigureRingController() {
- emulated_controller->SetPollingMode(Common::Input::PollingMode::Active);
+ emulated_controller->SetPollingMode(Core::HID::EmulatedDeviceIndex::RightIndex,
+ Common::Input::PollingMode::Active);
emulated_controller->DisableConfiguration();
if (is_controller_set) {
@@ -290,7 +291,8 @@ void ConfigureRingController::EnableRingController() {
// SetPollingMode is blocking. Allow to update the button status before calling the command
repaint();
- const auto result = emulated_controller->SetPollingMode(Common::Input::PollingMode::Ring);
+ const auto result = emulated_controller->SetPollingMode(
+ Core::HID::EmulatedDeviceIndex::RightIndex, Common::Input::PollingMode::Ring);
switch (result) {
case Common::Input::DriverResult::Success:
is_ring_enabled = true;