service: hid: Implement GetLastActiveNpad

This commit is contained in:
german77
2024-01-06 22:04:14 -06:00
committed by Narr the Reg
parent 3516a2d0bf
commit 5105b90017
3 changed files with 14 additions and 3 deletions

View File

@ -1378,4 +1378,10 @@ Result NPad::AssigningSingleOnSlSrPress(u64 aruid, bool is_enabled) {
return result;
}
Result NPad::GetLastActiveNpad(Core::HID::NpadIdType& out_npad_id) const {
std::scoped_lock lock{mutex};
out_npad_id = hid_core.GetLastActiveController();
return ResultSuccess;
}
} // namespace Service::HID