Skip to content

Commit

Permalink
improve button order in custom control menu
Browse files Browse the repository at this point in the history
  • Loading branch information
rsn8887 committed Dec 20, 2018
1 parent 83cb309 commit 29b95cf
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions src/gp2x/menu/menu_controls.cpp
Expand Up @@ -57,9 +57,9 @@ enum {
MENUCONTROLS_DOWN,
MENUCONTROLS_LEFT,
MENUCONTROLS_RIGHT,
MENUCONTROLS_A,
MENUCONTROLS_Y,
MENUCONTROLS_X,
MENUCONTROLS_A,
MENUCONTROLS_B,
MENUCONTROLS_L,
MENUCONTROLS_R,
Expand Down Expand Up @@ -548,12 +548,27 @@ static void draw_controlsMenu(int c)
write_text(tabstop1-4,menuLine,mapping);
}

// MENUCONTROLS_Y
// MENUCONTROLS_A
#ifdef __SWITCH__
menuLine+=2;
#else
menuLine+=3;
#endif
#if defined(__PSP2__)
write_text(leftMargin,menuLine,"Square");
#elif defined(__SWITCH__)
write_text(leftMargin,menuLine," Y");
#else
write_text(leftMargin,menuLine," (A)");
#endif
getMapping(mainMenu_custom_A[ctrlNr]);
if ((menuControls!=MENUCONTROLS_A)||(bb))
write_text_inv(tabstop1-4,menuLine,mapping);
else
write_text(tabstop1-4,menuLine,mapping);

// MENUCONTROLS_Y
menuLine+=2;
#if defined(__PSP2__)
write_text(leftMargin,menuLine,"Triangle");
#elif defined(__SWITCH__)
Expand Down Expand Up @@ -582,21 +597,6 @@ static void draw_controlsMenu(int c)
else
write_text(tabstop1-4,menuLine,mapping);

// MENUCONTROLS_A
menuLine+=2;
#if defined(__PSP2__)
write_text(leftMargin,menuLine,"Square");
#elif defined(__SWITCH__)
write_text(leftMargin,menuLine," Y");
#else
write_text(leftMargin,menuLine," (A)");
#endif
getMapping(mainMenu_custom_A[ctrlNr]);
if ((menuControls!=MENUCONTROLS_A)||(bb))
write_text_inv(tabstop1-4,menuLine,mapping);
else
write_text(tabstop1-4,menuLine,mapping);

// MENUCONTROLS_B
menuLine+=2;
#if defined(__PSP2__)
Expand Down

0 comments on commit 29b95cf

Please sign in to comment.