Misc fixes, mostly related to no-joycon controls
This commit is contained in:
1 parent
a146a38af7
commit
7add4b6b13
7 files changed
+23
-10
No files matched your search
@@ -98,4 +98,9 @@ Inputs *hidWait(){
|
||||
while (!(in->buttons))
|
||||
hidRead();
|
||||
return in;
|
||||
}
|
||||
|
||||
bool hidConnected(){
|
||||
jc_gamepad_rpt_t *controller = joycon_poll();
|
||||
return (controller->conn_l && controller->conn_r) ? 1 : 0;
|
||||
}
|
||||
+2
-1
@@ -51,4 +51,5 @@ typedef struct _inputs {
|
||||
void hidInit();
|
||||
Inputs *hidRead();
|
||||
Inputs *hidWait();
|
||||
Inputs *hidWaitMask(u32 mask);
|
||||
Inputs *hidWaitMask(u32 mask);
|
||||
bool hidConnected();
|
||||
Reference in new issue
Block a user