diff options
| author | 2024-01-28 18:26:40 -0600 | |
|---|---|---|
| committer | 2024-01-28 18:27:25 -0600 | |
| commit | 87e26de0fca682e48c21edd98c7636e797f8b2f2 (patch) | |
| tree | f5e059ccd56edfaee3d60fffcff7584f7f1c0d80 /src/hid_core/resources/npad | |
| parent | service: hid: Fully implement touch resource (diff) | |
| download | yuzu-87e26de0fca682e48c21edd98c7636e797f8b2f2.tar.gz yuzu-87e26de0fca682e48c21edd98c7636e797f8b2f2.tar.xz yuzu-87e26de0fca682e48c21edd98c7636e797f8b2f2.zip | |
service: hid: Restore active aruid
Diffstat (limited to 'src/hid_core/resources/npad')
| -rw-r--r-- | src/hid_core/resources/npad/npad_resource.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/hid_core/resources/npad/npad_resource.cpp b/src/hid_core/resources/npad/npad_resource.cpp index ea9fc14ed..8dd86b58e 100644 --- a/src/hid_core/resources/npad/npad_resource.cpp +++ b/src/hid_core/resources/npad/npad_resource.cpp | |||
| @@ -72,6 +72,12 @@ void NPadResource::UnregisterAppletResourceUserId(u64 aruid) { | |||
| 72 | state[aruid_index] = {}; | 72 | state[aruid_index] = {}; |
| 73 | registration_list.flag[aruid_index] = RegistrationStatus::PendingDelete; | 73 | registration_list.flag[aruid_index] = RegistrationStatus::PendingDelete; |
| 74 | } | 74 | } |
| 75 | |||
| 76 | for (std::size_t i = 0; i < AruidIndexMax; i++) { | ||
| 77 | if (registration_list.flag[i] == RegistrationStatus::Initialized) { | ||
| 78 | active_data_aruid = registration_list.aruid[i]; | ||
| 79 | } | ||
| 80 | } | ||
| 75 | } | 81 | } |
| 76 | 82 | ||
| 77 | void NPadResource::DestroyStyleSetUpdateEvents(u64 aruid) { | 83 | void NPadResource::DestroyStyleSetUpdateEvents(u64 aruid) { |