mirror of
https://github.com/switchbrew/libnx.git
synced 2025-07-04 10:32:15 +02:00
actually use proper function
This commit is contained in:
parent
20f86fafa4
commit
e85005191a
@ -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++;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user