1
0
mirror of https://git.suyu.dev/suyu/suyu synced 2025-09-04 02:16:31 -05:00

service: hid: Create abstracted pad structure

This commit is contained in:
german77
2024-01-07 09:05:12 -06:00
committed by Narr the Reg
parent a4d90a9a64
commit b5dac5f525
51 changed files with 3333 additions and 43 deletions

View File

@@ -47,7 +47,7 @@ void DefaultControllerApplet::ReconfigureControllers(ReconfigureCallback callbac
// Connect controllers based on the following priority list from highest to lowest priority:
// Pro Controller -> Dual Joycons -> Left Joycon/Right Joycon -> Handheld
if (parameters.allow_pro_controller) {
controller->SetNpadStyleIndex(Core::HID::NpadStyleIndex::ProController);
controller->SetNpadStyleIndex(Core::HID::NpadStyleIndex::Fullkey);
controller->Connect(true);
} else if (parameters.allow_dual_joycons) {
controller->SetNpadStyleIndex(Core::HID::NpadStyleIndex::JoyconDual);