hid: Uncomment function that works now

This commit is contained in:
Vicki Pfau 2018-09-28 19:48:49 -07:00 committed by yellows8
parent 8add42378b
commit 7a952ab39b
2 changed files with 4 additions and 3 deletions

View File

@ -606,6 +606,8 @@ void* hidGetSharedmemAddr(void);
void hidSetControllerLayout(HidControllerID id, HidControllerLayoutType layoutType);
HidControllerLayoutType hidGetControllerLayout(HidControllerID id);
HidControllerType hidGetControllerType(HidControllerID id);
void hidScanInput(void);
u64 hidKeysHeld(HidControllerID id);

View File

@ -269,8 +269,7 @@ void hidScanInput(void) {
rwlockWriteUnlock(&g_hidLock);
}
//TODO: Why is this field in sharedmem zeros?
/*u32 hidGetControllerType(HidControllerID id) {
HidControllerType hidGetControllerType(HidControllerID id) {
if (id==CONTROLLER_P1_AUTO) return hidGetControllerType(g_controllerP1AutoID);
if (id < 0 || id > 9) return 0;
@ -279,7 +278,7 @@ void hidScanInput(void) {
rwlockReadUnlock(&g_hidLock);
return tmp;
}*/
}
u64 hidKeysHeld(HidControllerID id) {
if (id==CONTROLLER_P1_AUTO) return hidKeysHeld(g_controllerP1AutoID);