summaryrefslogtreecommitdiffstats
path: root/src/core/hid/hid_core.cpp
diff options
context:
space:
mode:
authorgerman77 <juangerman-13@hotmail.com>2023-09-16 08:21:47 +0200
committergerman77 <juangerman-13@hotmail.com>2023-09-16 08:31:19 +0200
commit8950fe79ad0f1a10880556856eca9f987cdfd886 (patch)
tree8fed94e0fdad0043aa70af8ba4ba01793b658d12 /src/core/hid/hid_core.cpp
parentservice: hid: Ensure state is correct (diff)
downloadyuzu-8950fe79ad0f1a10880556856eca9f987cdfd886.tar
yuzu-8950fe79ad0f1a10880556856eca9f987cdfd886.tar.gz
yuzu-8950fe79ad0f1a10880556856eca9f987cdfd886.tar.bz2
yuzu-8950fe79ad0f1a10880556856eca9f987cdfd886.tar.lz
yuzu-8950fe79ad0f1a10880556856eca9f987cdfd886.tar.xz
yuzu-8950fe79ad0f1a10880556856eca9f987cdfd886.tar.zst
yuzu-8950fe79ad0f1a10880556856eca9f987cdfd886.zip
Diffstat (limited to 'src/core/hid/hid_core.cpp')
-rw-r--r--src/core/hid/hid_core.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/core/hid/hid_core.cpp b/src/core/hid/hid_core.cpp
index 7d6373414..cf53c04d9 100644
--- a/src/core/hid/hid_core.cpp
+++ b/src/core/hid/hid_core.cpp
@@ -154,6 +154,14 @@ NpadIdType HIDCore::GetFirstDisconnectedNpadId() const {
return NpadIdType::Player1;
}
+void HIDCore::SetLastActiveController(NpadIdType npad_id) {
+ last_active_controller = npad_id;
+}
+
+NpadIdType HIDCore::GetLastActiveController() const {
+ return last_active_controller;
+}
+
void HIDCore::EnableAllControllerConfiguration() {
player_1->EnableConfiguration();
player_2->EnableConfiguration();