Merge pull request #12605 from german77/abstract

service: hid: Create abstracted pad structure
This commit is contained in:
liamwhite 2024-01-12 10:02:13 -05:00 committed by GitHub
commit f7a3c135e2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
51 changed files with 3333 additions and 43 deletions

View file

@ -410,8 +410,8 @@ void EmulationSession::OnGamepadConnectEvent([[maybe_unused]] int index) {
jauto handheld = m_system.HIDCore().GetEmulatedController(Core::HID::NpadIdType::Handheld);
if (controller->GetNpadStyleIndex() == Core::HID::NpadStyleIndex::Handheld) {
handheld->SetNpadStyleIndex(Core::HID::NpadStyleIndex::ProController);
controller->SetNpadStyleIndex(Core::HID::NpadStyleIndex::ProController);
handheld->SetNpadStyleIndex(Core::HID::NpadStyleIndex::Fullkey);
controller->SetNpadStyleIndex(Core::HID::NpadStyleIndex::Fullkey);
handheld->Disconnect();
}
}