mirror of
https://github.com/switchbrew/libnx.git
synced 2025-06-24 22:02:39 +02:00
hid: Uncomment function that works now
This commit is contained in:
parent
8add42378b
commit
7a952ab39b
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user