summaryrefslogtreecommitdiff
path: root/src/core/hle
diff options
context:
space:
mode:
authorgerman77 <juangerman-13@hotmail.com>2023-01-28 18:19:15 -0600
committerNarr the Reg <juangerman-13@hotmail.com>2023-02-01 12:42:05 -0600
commit75e81885b0bd38ece84a94b2d323b05d788f8741 (patch)
treec0ed8431e0a29906b41f5a6f74d9f2ddd449e99b /src/core/hle
parent4069c3ac8b041bb22801663f4486ef115b863b23 (diff)
input_common: Implement turbo buttons
Diffstat (limited to 'src/core/hle')
-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 5713f1288..3afda9e3f 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();