- added a few more special keys for available use as hotkeys (vkPause and vkPrint)

This commit is contained in:
Mark Vejvoda
2011-01-03 22:22:52 +00:00
parent 4de585f5b8
commit f7d2631879
4 changed files with 21 additions and 4 deletions

View File

@@ -948,6 +948,10 @@ bool isKeyDown(int virtualKey) {
return (keystate[SDLK_BACKSPACE] != 0);
case vkDelete:
return (keystate[SDLK_DELETE] != 0);
case vkPrint:
return (keystate[SDLK_PRINT] != 0);
case vkPause:
return (keystate[SDLK_PAUSE] != 0);
default:
std::cerr << "isKeyDown called with unknown key.\n";
break;

View File

@@ -622,6 +622,10 @@ char Window::getKey(SDL_keysym keysym,bool skipSpecialKeys) {
return vkBack;
case SDLK_DELETE:
return vkDelete;
case SDLK_PRINT:
return vkPrint;
case SDLK_PAUSE:
return vkPause;
case SDLK_F1:
return vkF1;
break;