service/hid: Implement SetNpadJoyAssignmentMode
This commit is contained in:
parent
fae07919af
commit
d6ae9c68f8
5 changed files with 174 additions and 38 deletions
|
@ -145,6 +145,16 @@ NpadIdType HIDCore::GetFirstNpadId() const {
|
|||
return NpadIdType::Player1;
|
||||
}
|
||||
|
||||
NpadIdType HIDCore::GetFirstDisconnectedNpadId() const {
|
||||
for (std::size_t player_index = 0; player_index < available_controllers; ++player_index) {
|
||||
const auto* const controller = GetEmulatedControllerByIndex(player_index);
|
||||
if (!controller->IsConnected()) {
|
||||
return controller->GetNpadIdType();
|
||||
}
|
||||
}
|
||||
return NpadIdType::Player1;
|
||||
}
|
||||
|
||||
void HIDCore::EnableAllControllerConfiguration() {
|
||||
player_1->EnableConfiguration();
|
||||
player_2->EnableConfiguration();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue