Using dual joycons as the default controller

Reason for the change is to allow both docked and undocked mode to work
This commit is contained in:
David Marcec
2018-10-18 00:11:47 +11:00
parent 98b760c645
commit 8144fa42bd
3 changed files with 59 additions and 77 deletions

View File

@ -284,7 +284,7 @@ public:
private:
std::shared_ptr<IAppletResource> applet_resource;
#pragma optimize("", off)
void CreateAppletResource(Kernel::HLERequestContext& ctx) {
if (applet_resource == nullptr) {
applet_resource = std::make_shared<IAppletResource>();
@ -545,8 +545,6 @@ 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) {