summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service
diff options
context:
space:
mode:
authorgerman77 <juangerman-13@hotmail.com>2023-11-12 03:54:06 +0100
committergerman77 <juangerman-13@hotmail.com>2023-11-12 04:03:15 +0100
commitae57a99d7d2063661cc15e76e8183122d8e0bc1b (patch)
tree206b82f9387b93dbdc08408ceff88c24814f3237 /src/core/hle/service
parentMerge pull request #11980 from german77/moment (diff)
downloadyuzu-ae57a99d7d2063661cc15e76e8183122d8e0bc1b.tar
yuzu-ae57a99d7d2063661cc15e76e8183122d8e0bc1b.tar.gz
yuzu-ae57a99d7d2063661cc15e76e8183122d8e0bc1b.tar.bz2
yuzu-ae57a99d7d2063661cc15e76e8183122d8e0bc1b.tar.lz
yuzu-ae57a99d7d2063661cc15e76e8183122d8e0bc1b.tar.xz
yuzu-ae57a99d7d2063661cc15e76e8183122d8e0bc1b.tar.zst
yuzu-ae57a99d7d2063661cc15e76e8183122d8e0bc1b.zip
Diffstat (limited to 'src/core/hle/service')
-rw-r--r--src/core/hle/service/hid/controllers/npad.cpp6
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) {
pad_entry.l_stick = stick_state.left;
}
- if (controller_type == Core::HID::NpadStyleIndex::JoyconLeft) {
+ if (controller_type == Core::HID::NpadStyleIndex::JoyconLeft ||
+ controller_type == Core::HID::NpadStyleIndex::JoyconDual) {
pad_entry.npad_buttons.left_sl.Assign(button_state.left_sl);
pad_entry.npad_buttons.left_sr.Assign(button_state.left_sr);
}
- if (controller_type == Core::HID::NpadStyleIndex::JoyconRight) {
+ if (controller_type == Core::HID::NpadStyleIndex::JoyconRight ||
+ controller_type == Core::HID::NpadStyleIndex::JoyconDual) {
pad_entry.npad_buttons.right_sl.Assign(button_state.right_sl);
pad_entry.npad_buttons.right_sr.Assign(button_state.right_sr);
}