Misc fixes, mostly related to no-joycon controls

This commit is contained in:
Such Meme, Many Skill committed 2020-05-02 20:53:13 +02:00
1 parent a146a38af7
commit 7add4b6b13
7 files changed
+23 -10

No files matched your search

+5
View File
@@ -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
View File
@@ -51,4 +51,5 @@ typedef struct _inputs {
void hidInit();
Inputs *hidRead();
Inputs *hidWait();
Inputs *hidWaitMask(u32 mask);
Inputs *hidWaitMask(u32 mask);
bool hidConnected();