From 667f5424cb9838689af61a2971eed25996c8b079 Mon Sep 17 00:00:00 2001 From: invisiblek Date: Fri, 30 Nov 2012 20:49:18 -0600 Subject: [PATCH] Add left and right brackets as PAGEUP and PAGEDOWN keys Some devices, such as an IPAC are hard to program for PGUP and PGDOWN. This makes it much easier and they are two keys that usually won't get used for anything. --- README.md | 6 +++++- src/InputManager.cpp | 6 ++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 8944400ab..fdbdd9348 100644 --- a/README.md +++ b/README.md @@ -54,7 +54,11 @@ Up - Scroll up Down - Scroll down -Left - Last system (if it exists) +PageUp or ] - Page up + +PageDown or [ - Page down + +Left - Previous system (if it exists) Right - Next system (if it exists) diff --git a/src/InputManager.cpp b/src/InputManager.cpp index 088990f78..8d7cf3359 100644 --- a/src/InputManager.cpp +++ b/src/InputManager.cpp @@ -61,9 +61,15 @@ void InputManager::processEvent(SDL_Event* event) case SDLK_PAGEUP: button = PAGEUP; break; + case SDLK_RIGHTBRACKET: + button = PAGEUP; + break; case SDLK_PAGEDOWN: button = PAGEDOWN; break; + case SDLK_LEFTBRACKET: + button = PAGEDOWN; + break; case SDLK_RETURN: button = BUTTON1; break;