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.
This commit is contained in:
invisiblek 2012-11-30 20:49:18 -06:00
parent 8cf16af40b
commit 667f5424cb
2 changed files with 11 additions and 1 deletions

View file

@ -54,7 +54,11 @@ Up - Scroll up
Down - Scroll down 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) Right - Next system (if it exists)

View file

@ -61,9 +61,15 @@ void InputManager::processEvent(SDL_Event* event)
case SDLK_PAGEUP: case SDLK_PAGEUP:
button = PAGEUP; button = PAGEUP;
break; break;
case SDLK_RIGHTBRACKET:
button = PAGEUP;
break;
case SDLK_PAGEDOWN: case SDLK_PAGEDOWN:
button = PAGEDOWN; button = PAGEDOWN;
break; break;
case SDLK_LEFTBRACKET:
button = PAGEDOWN;
break;
case SDLK_RETURN: case SDLK_RETURN:
button = BUTTON1; button = BUTTON1;
break; break;