Misc fixes, mostly related to no-joycon controls
This commit is contained in:
@@ -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;
|
||||
}
|
||||
@@ -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