Make the OSK go left/right like SNES/etc. ones.

This commit is contained in:
Unknown W. Brackets committed 2012-12-23 09:25:42 -08:00
1 parent bfcf6e3aca
commit 7c35b145ea
1 file changed
+4
+4
View File
@@ -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;