diff options
| author | 2023-11-11 20:54:06 -0600 | |
|---|---|---|
| committer | 2023-11-11 21:03:15 -0600 | |
| commit | ae57a99d7d2063661cc15e76e8183122d8e0bc1b (patch) | |
| tree | 206b82f9387b93dbdc08408ceff88c24814f3237 /src/core/hle/service/hid | |
| parent | Merge pull request #11980 from german77/moment (diff) | |
| download | yuzu-ae57a99d7d2063661cc15e76e8183122d8e0bc1b.tar.gz yuzu-ae57a99d7d2063661cc15e76e8183122d8e0bc1b.tar.xz yuzu-ae57a99d7d2063661cc15e76e8183122d8e0bc1b.zip | |
core: hid: Split SL and SR buttons
Diffstat (limited to 'src/core/hle/service/hid')
| -rw-r--r-- | src/core/hle/service/hid/controllers/npad.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/core/hle/service/hid/controllers/npad.cpp b/src/core/hle/service/hid/controllers/npad.cpp index 21695bda2..d46bf917e 100644 --- a/src/core/hle/service/hid/controllers/npad.cpp +++ b/src/core/hle/service/hid/controllers/npad.cpp | |||
| @@ -457,12 +457,14 @@ void Controller_NPad::RequestPadStateUpdate(Core::HID::NpadIdType npad_id) { | |||
| 457 | pad_entry.l_stick = stick_state.left; | 457 | pad_entry.l_stick = stick_state.left; |
| 458 | } | 458 | } |
| 459 | 459 | ||
| 460 | if (controller_type == Core::HID::NpadStyleIndex::JoyconLeft) { | 460 | if (controller_type == Core::HID::NpadStyleIndex::JoyconLeft || |
| 461 | controller_type == Core::HID::NpadStyleIndex::JoyconDual) { | ||
| 461 | pad_entry.npad_buttons.left_sl.Assign(button_state.left_sl); | 462 | pad_entry.npad_buttons.left_sl.Assign(button_state.left_sl); |
| 462 | pad_entry.npad_buttons.left_sr.Assign(button_state.left_sr); | 463 | pad_entry.npad_buttons.left_sr.Assign(button_state.left_sr); |
| 463 | } | 464 | } |
| 464 | 465 | ||
| 465 | if (controller_type == Core::HID::NpadStyleIndex::JoyconRight) { | 466 | if (controller_type == Core::HID::NpadStyleIndex::JoyconRight || |
| 467 | controller_type == Core::HID::NpadStyleIndex::JoyconDual) { | ||
| 466 | pad_entry.npad_buttons.right_sl.Assign(button_state.right_sl); | 468 | pad_entry.npad_buttons.right_sl.Assign(button_state.right_sl); |
| 467 | pad_entry.npad_buttons.right_sr.Assign(button_state.right_sr); | 469 | pad_entry.npad_buttons.right_sr.Assign(button_state.right_sr); |
| 468 | } | 470 | } |