diff options
| author | 2023-02-01 12:08:34 -0800 | |
|---|---|---|
| committer | 2023-02-01 12:08:34 -0800 | |
| commit | 92c5ab33b7d7ff818ace82bc8dabbf4f0291f226 (patch) | |
| tree | d082352ddac1ea9d1b6320cb99ef7994595b5292 /src/core/hle | |
| parent | Merge pull request #9711 from zhaobot/tx-update-20230201062139 (diff) | |
| parent | yuzu: config: Draw turbo buttons with a different color (diff) | |
| download | yuzu-92c5ab33b7d7ff818ace82bc8dabbf4f0291f226.tar.gz yuzu-92c5ab33b7d7ff818ace82bc8dabbf4f0291f226.tar.xz yuzu-92c5ab33b7d7ff818ace82bc8dabbf4f0291f226.zip | |
Merge pull request #9696 from german77/please_forgive_me_for_this_sin
input_common: Implement turbo buttons
Diffstat (limited to 'src/core/hle')
| -rw-r--r-- | src/core/hle/service/hid/controllers/npad.cpp | 3 |
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) { | |||
| 428 | return; | 428 | return; |
| 429 | } | 429 | } |
| 430 | 430 | ||
| 431 | // This function is unique to yuzu for the turbo buttons to work properly | ||
| 432 | controller.device->TurboButtonUpdate(); | ||
| 433 | |||
| 431 | auto& pad_entry = controller.npad_pad_state; | 434 | auto& pad_entry = controller.npad_pad_state; |
| 432 | auto& trigger_entry = controller.npad_trigger_state; | 435 | auto& trigger_entry = controller.npad_trigger_state; |
| 433 | const auto button_state = controller.device->GetNpadButtons(); | 436 | const auto button_state = controller.device->GetNpadButtons(); |