actually use proper function

This commit is contained in:
Gabriel 2019-12-11 19:57:55 -08:00
parent 20f86fafa4
commit e85005191a

View File

@ -466,7 +466,7 @@ u64 hidKeysAllHeld() {
u32 hidGetControllerCount() { u32 hidGetControllerCount() {
u32 count = 0; u32 count = 0;
rwlockReadlock(&g_hidLock); rwlockReadLock(&g_hidLock);
for (u32 controller=0; controller<10; controller++) { for (u32 controller=0; controller<10; controller++) {
if ((g_controllerEntries[controller].connectionState & CONTROLLER_STATE_CONNECTED) != 0) count++; if ((g_controllerEntries[controller].connectionState & CONTROLLER_STATE_CONNECTED) != 0) count++;
} }