- fixed bug in sdl where it doesn't always give the correct key modifiers.

- can now press alt-enter on intro screen
This commit is contained in:
Mark Vejvoda
2011-12-03 04:58:36 +00:00
parent 46d68b8d50
commit 8a5d4463a6
3 changed files with 24 additions and 4 deletions

View File

@@ -960,6 +960,7 @@ void MainWindow::eventKeyDown(SDL_KeyboardEvent key) {
//SDL_keysym keystate = Window::getKeystate();
SDL_keysym keystate = key.keysym;
//printf("keystate.mod = %d key = %d lalt [%d] ralt [%d] alt [%d]\n",keystate.mod,key.keysym.unicode,(keystate.mod & KMOD_LALT),(keystate.mod & KMOD_RALT),(keystate.mod & KMOD_ALT));
SystemFlags::OutputDebug(SystemFlags::debugSystem,"In [%s::%s Line: %d] key = [%c][%d]\n",__FILE__,__FUNCTION__,__LINE__,key,key);