From: smea Date: Tue, 14 Jul 2015 06:00:52 +0000 (-0700) Subject: added hid:SPVR support X-Git-Tag: v0.6.0~25 X-Git-Url: https://chaos.moe/g/?a=commitdiff_plain;h=00eb8c38dc3d983ac832cad03807be0c7cbed9f8;p=corbenik%2Fctrulib.git added hid:SPVR support --- diff --git a/libctru/source/services/hid.c b/libctru/source/services/hid.c index 5d99369..8367e8d 100644 --- a/libctru/source/services/hid.c +++ b/libctru/source/services/hid.c @@ -35,7 +35,7 @@ Result hidInit(u32* sharedMem) if(!sharedMem)sharedMem=(u32*)HID_SHAREDMEM_DEFAULT; // Request service. - if((ret=srvGetServiceHandle(&hidHandle, "hid:USER")))return ret; + if((ret=srvGetServiceHandle(&hidHandle, "hid:USER")) && (ret=srvGetServiceHandle(&hidHandle, "hid:SPVR")))return ret; // Get sharedmem handle. if((ret=HIDUSER_GetHandles(&hidMemHandle, &hidEvents[HIDEVENT_PAD0], &hidEvents[HIDEVENT_PAD1], &hidEvents[HIDEVENT_Accel], &hidEvents[HIDEVENT_Gyro], &hidEvents[HIDEVENT_DebugPad]))) goto cleanup1;