summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2023-02-01 21:08:34 +0100
committerGitHub <noreply@github.com>2023-02-01 21:08:34 +0100
commit92c5ab33b7d7ff818ace82bc8dabbf4f0291f226 (patch)
treed082352ddac1ea9d1b6320cb99ef7994595b5292 /src/core/hle/service
parentMerge pull request #9711 from zhaobot/tx-update-20230201062139 (diff)
parentyuzu: config: Draw turbo buttons with a different color (diff)
downloadyuzu-92c5ab33b7d7ff818ace82bc8dabbf4f0291f226.tar
yuzu-92c5ab33b7d7ff818ace82bc8dabbf4f0291f226.tar.gz
yuzu-92c5ab33b7d7ff818ace82bc8dabbf4f0291f226.tar.bz2
yuzu-92c5ab33b7d7ff818ace82bc8dabbf4f0291f226.tar.lz
yuzu-92c5ab33b7d7ff818ace82bc8dabbf4f0291f226.tar.xz
yuzu-92c5ab33b7d7ff818ace82bc8dabbf4f0291f226.tar.zst
yuzu-92c5ab33b7d7ff818ace82bc8dabbf4f0291f226.zip
Diffstat (limited to 'src/core/hle/service')
-rw-r--r--src/core/hle/service/hid/controllers/npad.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/hle/service/hid/controllers/npad.cpp b/src/core/hle/service/hid/controllers/npad.cpp
index 84edc8839..513ea485a 100644
--- a/src/core/hle/service/hid/controllers/npad.cpp
+++ b/src/core/hle/service/hid/controllers/npad.cpp
@@ -428,6 +428,9 @@ void Controller_NPad::RequestPadStateUpdate(Core::HID::NpadIdType npad_id) {
return;
}
+ // This function is unique to yuzu for the turbo buttons to work properly
+ controller.device->TurboButtonUpdate();
+
auto& pad_entry = controller.npad_pad_state;
auto& trigger_entry = controller.npad_trigger_state;
const auto button_state = controller.device->GetNpadButtons();