diff --git a/taikohook/bnusio.c b/taikohook/bnusio.c index d4193c9..cc08498 100644 --- a/taikohook/bnusio.c +++ b/taikohook/bnusio.c @@ -207,18 +207,17 @@ static int my_bnusio_SetGout(uint8_t id, uint8_t value) static int my_bnusio_GetAnalogIn(uint8_t id) { uint8_t gamebtns = 0; - + taiko_dll.poll(); taiko_dll.get_gamebtns(&gamebtns); - - if (gamebtns & 1 << id) { + + if (gamebtns & 1 << id) { return 0xffff; } return 0; } -// TODO: Auto-hold test switch static int my_bnusio_GetSwIn() { uint8_t opbtn; @@ -277,4 +276,4 @@ static int my_bnusio_GetServiceError(uint8_t id) { //dprintf("bnusio: GetServiceError %d\n", id); return 0; -} \ No newline at end of file +}