changeset 1552:fdd3a02d830f

Add Page Up and Down keys to 64vw controls.
author Matti Hamalainen <ccr@tnsp.org>
date Sun, 13 May 2018 04:11:05 +0300
parents 31010318ea8c
children e68d3b16c79e
files tools/64vw.c
diffstat 1 files changed, 18 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/tools/64vw.c	Sun May 13 04:05:20 2018 +0300
+++ b/tools/64vw.c	Sun May 13 04:11:05 2018 +0300
@@ -310,11 +310,29 @@
                     case SDLK_LEFT:
                         if (currIndex > 0)
                             currIndex--;
+                        else
+                            currIndex = 0;
                         break;
 
                     case SDLK_RIGHT:
                         if (currIndex < noptFilenames2 - 1)
                             currIndex++;
+                        else
+                            currIndex = noptFilenames2;
+                        break;
+
+                    case SDLK_PAGEUP:
+                        if (currIndex > 10)
+                            currIndex -= 10;
+                        else
+                            currIndex = 0;
+                        break;
+
+                    case SDLK_PAGEDOWN:
+                        if (currIndex < noptFilenames2 - 10)
+                            currIndex += 10;
+                        else
+                            currIndex = noptFilenames2;
                         break;
 
                     default: