1
0
Fork 0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-12-22 09:39:43 +01:00

Reverse left & right nav keys in editor for RTL

If the language is RTL, then the left and right menu navigation keys
should be reversed, because the menu layout goes from right to left.

This is to be consistent with the other menus in the game. The editor is
just a special case so it was overlooked.
This commit is contained in:
Misa 2024-01-09 21:03:03 -08:00
parent 163f3a0fde
commit 2a9003ae45

View file

@ -3524,11 +3524,23 @@ void editorinput(void)
if (game.menustart) if (game.menustart)
{ {
if (game.press_left || up_pressed) bool left, right;
if (!font::is_rtl(PR_FONT_INTERFACE))
{
left = game.press_left;
right = game.press_right;
}
else
{
left = game.press_right;
right = game.press_left;
}
if (left || up_pressed)
{ {
game.currentmenuoption--; game.currentmenuoption--;
} }
else if (game.press_right || down_pressed) else if (right || down_pressed)
{ {
game.currentmenuoption++; game.currentmenuoption++;
} }