Skip to content

Commit

Permalink
Use keysDownRepeat() for up/down in the summary
Browse files Browse the repository at this point in the history
  • Loading branch information
Epicpkmn11 committed Jun 24, 2019
1 parent e1c7f9b commit fb1248f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arm9/source/summary.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,9 @@ std::shared_ptr<PKX> showPokemonSummary(std::shared_ptr<PKX> pkm) {
held = keysDownRepeat();
} while(!held);

if(pressed & KEY_UP) {
if(held & KEY_UP) {
if(selection > 0) selection--;
} else if(pressed & KEY_DOWN) {
} else if(held & KEY_DOWN) {
if(selection < 5) selection++;
} else if(pressed & KEY_A) {
switch(selection) {
Expand Down

0 comments on commit fb1248f

Please sign in to comment.