Misc fixes, mostly related to no-joycon controls

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

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;
}