From 7c35b145eaa8536f32cc5a3aa3937fe77d27d3b9 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sun, 23 Dec 2012 09:25:42 -0800 Subject: [PATCH] Make the OSK go left/right like SNES/etc. ones. --- Core/Dialog/PSPOskDialog.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Core/Dialog/PSPOskDialog.cpp b/Core/Dialog/PSPOskDialog.cpp index a7380c510f..f2d186c5a5 100644 --- a/Core/Dialog/PSPOskDialog.cpp +++ b/Core/Dialog/PSPOskDialog.cpp @@ -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;