mirror of
https://github.com/Maschell/PushA_NX.git
synced 2024-11-25 17:26:53 +01:00
Fixed the input and score
This commit is contained in:
parent
e71fac665b
commit
d4eeaed636
2
hello.c
2
hello.c
@ -80,7 +80,7 @@ int main(){
|
|||||||
game_state = RESULT;
|
game_state = RESULT;
|
||||||
}
|
}
|
||||||
}else if(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.");
|
drawStringf(g, x, y+2,"Press MINUS to try again.");
|
||||||
if(isHighscore){
|
if(isHighscore){
|
||||||
drawStringf(g, x, y+4,"NEW HIGHSCORE!");
|
drawStringf(g, x, y+4,"NEW HIGHSCORE!");
|
||||||
|
2
input.c
2
input.c
@ -26,7 +26,7 @@ void PADRead(struct PADData* data){
|
|||||||
|
|
||||||
// scan for controller
|
// scan for controller
|
||||||
hid_controller_t* num = hid_get_shared_memory()->controllers;
|
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 ent = num->main.entries[num->main.latest_idx];
|
||||||
hid_controller_state_entry_t ent8 = num8->main.entries[num8->main.latest_idx];
|
hid_controller_state_entry_t ent8 = num8->main.entries[num8->main.latest_idx];
|
||||||
|
Loading…
Reference in New Issue
Block a user