diff options
author | Narr the Reg <[email protected]> | 2023-01-13 13:39:33 -0600 |
---|---|---|
committer | Narr the Reg <[email protected]> | 2023-01-19 18:05:23 -0600 |
commit | 4a307a7b3aa3afea7d62674f6cf40b76f3ffb5e3 (patch) | |
tree | c104ff9a8a48cf29fd3dc67c84f5af71224744f7 /src/yuzu/configuration/configure_ringcon.cpp | |
parent | b40aefb39ea8b4259acdbe0616790c2234d9b9ef (diff) | |
download | yuzu-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.cpp | 6 |
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; |