Skip to content

Commit

Permalink
added hid:SPVR support
Browse files Browse the repository at this point in the history
  • Loading branch information
smealum committed Jul 14, 2015
1 parent e539c83 commit 00eb8c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libctru/source/services/hid.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 00eb8c3

Please sign in to comment.