diff --git a/hello.c b/hello.c index 6ec1bd6..e869222 100644 --- a/hello.c +++ b/hello.c @@ -80,7 +80,7 @@ int main(){ game_state = RESULT; } }else if(game_state == RESULT){ - drawStringf(g, x, y, "Score: %d", button_count); + drawStringf(g, x, y, "Score: %d", score); drawStringf(g, x, y+2,"Press MINUS to try again."); if(isHighscore){ drawStringf(g, x, y+4,"NEW HIGHSCORE!"); diff --git a/input.c b/input.c index f90ee8d..96ea246 100644 --- a/input.c +++ b/input.c @@ -26,7 +26,7 @@ void PADRead(struct PADData* data){ // scan for controller hid_controller_t* num = hid_get_shared_memory()->controllers; - hid_controller_t* num8 = hid_get_shared_memory()->controllers; + hid_controller_t* num8 = hid_get_shared_memory()->controllers + 8 ; hid_controller_state_entry_t ent = num->main.entries[num->main.latest_idx]; hid_controller_state_entry_t ent8 = num8->main.entries[num8->main.latest_idx];