Skip to content

Commit

Permalink
Allow left/right keys to page up/dn on rom select (easier than should…
Browse files Browse the repository at this point in the history
…er buttons which will still work)
  • Loading branch information
wavemotion-dave committed Dec 19, 2020
1 parent 2976f82 commit 1137712
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Binary file modified A7800DS.nds
Binary file not shown.
4 changes: 2 additions & 2 deletions arm9/source/a7800utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,7 @@ unsigned int dsWaitForRom(void)
else {
ucBas = 0;
}
if (keysCurrent() & KEY_R) {
if((keysCurrent() & KEY_R) || (keysCurrent() & KEY_RIGHT)) {
if (!ucSBas) {
ucFicAct = (ucFicAct< countpro-nbRomPerPage ? ucFicAct+nbRomPerPage : countpro-nbRomPerPage);
if (firstRomDisplay<countpro-nbRomPerPage) { firstRomDisplay += nbRomPerPage; }
Expand All @@ -584,7 +584,7 @@ unsigned int dsWaitForRom(void)
else {
ucSBas = 0;
}
if (keysCurrent() & KEY_L) {
if ((keysCurrent() & KEY_L) || (keysCurrent() & KEY_LEFT)) {
if (!ucSHaut) {
ucFicAct = (ucFicAct> nbRomPerPage ? ucFicAct-nbRomPerPage : 0);
if (firstRomDisplay>nbRomPerPage) { firstRomDisplay -= nbRomPerPage; }
Expand Down

0 comments on commit 1137712

Please sign in to comment.