mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-29 17:23:40 +01:00
Make the OSK go left/right like SNES/etc. ones.
This commit is contained in:
1 parent
bfcf6e3aca
commit
7c35b145ea
1 file changed
+4
@@ -183,10 +183,14 @@ void PSPOskDialog::Update()
|
||||
else if (IsButtonPressed(CTRL_LEFT))
|
||||
{
|
||||
selectedChar--;
|
||||
if (((selectedChar + KEYSPERROW) % KEYSPERROW) == KEYSPERROW - 1)
|
||||
selectedChar += KEYSPERROW;
|
||||
}
|
||||
else if (IsButtonPressed(CTRL_RIGHT))
|
||||
{
|
||||
selectedChar++;
|
||||
if ((selectedChar % KEYSPERROW) == 0)
|
||||
selectedChar -= KEYSPERROW;
|
||||
}
|
||||
|
||||
selectedChar = (selectedChar + NUMBEROFVALIDCHARS) % NUMBEROFVALIDCHARS;
|
||||
|
||||
Reference in new issue
Block a user