mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-10-13 10:37:50 +00:00
service: hid: Implement GetLastActiveNpad
This commit is contained in:
parent
1f3c770e79
commit
94693e5e4b
3 changed files with 14 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue