mirror of
https://github.com/libretro/ppsspp.git
synced 2025-03-04 14:37:17 +00:00
Make the OSK go left/right like SNES/etc. ones.
This commit is contained in:
parent
bfcf6e3aca
commit
7c35b145ea
@ -183,10 +183,14 @@ void PSPOskDialog::Update()
|
|||||||
else if (IsButtonPressed(CTRL_LEFT))
|
else if (IsButtonPressed(CTRL_LEFT))
|
||||||
{
|
{
|
||||||
selectedChar--;
|
selectedChar--;
|
||||||
|
if (((selectedChar + KEYSPERROW) % KEYSPERROW) == KEYSPERROW - 1)
|
||||||
|
selectedChar += KEYSPERROW;
|
||||||
}
|
}
|
||||||
else if (IsButtonPressed(CTRL_RIGHT))
|
else if (IsButtonPressed(CTRL_RIGHT))
|
||||||
{
|
{
|
||||||
selectedChar++;
|
selectedChar++;
|
||||||
|
if ((selectedChar % KEYSPERROW) == 0)
|
||||||
|
selectedChar -= KEYSPERROW;
|
||||||
}
|
}
|
||||||
|
|
||||||
selectedChar = (selectedChar + NUMBEROFVALIDCHARS) % NUMBEROFVALIDCHARS;
|
selectedChar = (selectedChar + NUMBEROFVALIDCHARS) % NUMBEROFVALIDCHARS;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user