mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 09:28:15 +03: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:
@@ -3524,11 +3524,23 @@ void editorinput(void)
|
||||
|
||||
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--;
|
||||
}
|
||||
else if (game.press_right || down_pressed)
|
||||
else if (right || down_pressed)
|
||||
{
|
||||
game.currentmenuoption++;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user