Dynamically decide handheld variant based on supported npad id priority

Kirby input still doesn't work, should fix a lot of other games
This commit is contained in:
David Marcec
2018-10-12 02:56:49 +11:00
parent 9e924f2ef2
commit 85b0d9a7be
3 changed files with 62 additions and 19 deletions

View File

@ -347,6 +347,8 @@ private:
}
void StartSixAxisSensor(Kernel::HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
auto handle = rp.PopRaw<u32>();
IPC::ResponseBuilder rb{ctx, 2};
rb.Push(RESULT_SUCCESS);
LOG_WARNING(Service_HID, "(STUBBED) called");
@ -539,6 +541,8 @@ private:
IPC::ResponseBuilder rb{ctx, 2};
rb.Push(RESULT_SUCCESS);
LOG_WARNING(Service_HID, "(STUBBED) called");
applet_resource->GetController<Controller_NPad>(HidController::NPad)
.SetHandheldActiviationMode(mode);
}
void GetVibrationDeviceInfo(Kernel::HLERequestContext& ctx) {