summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service
diff options
context:
space:
mode:
authorNarr the Reg <juangerman-13@hotmail.com>2022-12-20 20:33:45 +0100
committerNarr the Reg <juangerman-13@hotmail.com>2023-01-20 01:05:20 +0100
commit36d5e0a41151ae39b5fb827c5085142ab4b296a5 (patch)
treed9ed364e998725b6b6fb378768466e1adbe8ec44 /src/core/hle/service
parentcore: hid: Enable pulling color data from controllers (diff)
downloadyuzu-36d5e0a41151ae39b5fb827c5085142ab4b296a5.tar
yuzu-36d5e0a41151ae39b5fb827c5085142ab4b296a5.tar.gz
yuzu-36d5e0a41151ae39b5fb827c5085142ab4b296a5.tar.bz2
yuzu-36d5e0a41151ae39b5fb827c5085142ab4b296a5.tar.lz
yuzu-36d5e0a41151ae39b5fb827c5085142ab4b296a5.tar.xz
yuzu-36d5e0a41151ae39b5fb827c5085142ab4b296a5.tar.zst
yuzu-36d5e0a41151ae39b5fb827c5085142ab4b296a5.zip
Diffstat (limited to 'src/core/hle/service')
-rw-r--r--src/core/hle/service/hid/controllers/npad.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core/hle/service/hid/controllers/npad.cpp b/src/core/hle/service/hid/controllers/npad.cpp
index 2f871de31..83b368091 100644
--- a/src/core/hle/service/hid/controllers/npad.cpp
+++ b/src/core/hle/service/hid/controllers/npad.cpp
@@ -272,6 +272,8 @@ void Controller_NPad::InitNewlyAddedController(Core::HID::NpadIdType npad_id) {
}
break;
case Core::HID::NpadStyleIndex::JoyconLeft:
+ shared_memory->fullkey_color.attribute = ColorAttribute::Ok;
+ shared_memory->fullkey_color.fullkey = body_colors.left;
shared_memory->joycon_color.attribute = ColorAttribute::Ok;
shared_memory->joycon_color.left = body_colors.left;
shared_memory->battery_level_dual = battery_level.left.battery_level;
@@ -285,6 +287,8 @@ void Controller_NPad::InitNewlyAddedController(Core::HID::NpadIdType npad_id) {
shared_memory->sixaxis_left_properties.is_newly_assigned.Assign(1);
break;
case Core::HID::NpadStyleIndex::JoyconRight:
+ shared_memory->fullkey_color.attribute = ColorAttribute::Ok;
+ shared_memory->fullkey_color.fullkey = body_colors.right;
shared_memory->joycon_color.attribute = ColorAttribute::Ok;
shared_memory->joycon_color.right = body_colors.right;
shared_memory->battery_level_right = battery_level.right.battery_level;
@@ -332,6 +336,7 @@ void Controller_NPad::InitNewlyAddedController(Core::HID::NpadIdType npad_id) {
controller.is_connected = true;
controller.device->Connect();
+ controller.device->SetLedPattern();
SignalStyleSetChangedEvent(npad_id);
WriteEmptyEntry(controller.shared_memory);
}