]> Chaos Git - corbenik/ctrulib.git/commitdiff
added hid:SPVR support
authorsmea <smealum@gmail.com>
Tue, 14 Jul 2015 06:00:52 +0000 (23:00 -0700)
committersmea <smealum@gmail.com>
Tue, 14 Jul 2015 06:00:52 +0000 (23:00 -0700)
libctru/source/services/hid.c

index 5d99369497d86229d49499c5fbc3ca8b55586fb3..8367e8d0f367f4117ba8bb1d94dbefc3919ff60e 100644 (file)
@@ -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;