diff options
author | pixel <pixel> | 2003-03-17 08:10:24 +0000 |
---|---|---|
committer | pixel <pixel> | 2003-03-17 08:10:24 +0000 |
commit | 5df4e04d7c7e16e1793322f1436cd9c6bb1322bb (patch) | |
tree | e68ffb0dbfe059990f80de6102def49166099be2 /lib | |
parent | 726566a601202f90e6db058f2cb081db6a27e012 (diff) |
Tweak
Diffstat (limited to 'lib')
-rw-r--r-- | lib/engine.cc | 2 | ||||
-rw-r--r-- | lib/glbase.cc | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/lib/engine.cc b/lib/engine.cc index 35c9971..7ccc995 100644 --- a/lib/engine.cc +++ b/lib/engine.cc @@ -169,7 +169,7 @@ void mogltk::engine::pollevents() { case SDL_KEYDOWN: case SDL_KEYUP: printm(M_INFO, String("Key ") + event.key.keysym.scancode + " on keyboard " + event.key.which + (event.key.state == SDL_PRESSED ? " pressed" : " released") + "\n"); - printm(M_INFO, "SDL keysym: %i - Unicode: %04x - modifiers: %04x\n", event.key.keysym.sym, event.key.keysym.unicode, event.key.keysym.mod); + printm(M_INFO, "SDL keysym: %i - Unicode: %04x = `%c`- modifiers: %04x\n", event.key.keysym.sym, event.key.keysym.unicode, event.key.keysym.unicode, event.key.keysym.mod); if (event.key.keysym.sym == 27) hastoreturn = quitrequest = true; break; diff --git a/lib/glbase.cc b/lib/glbase.cc index 8800f47..86d0774 100644 --- a/lib/glbase.cc +++ b/lib/glbase.cc @@ -26,7 +26,6 @@ int mogltk::glbase::setup(int w, int h, int flags) throw(GeneralException) { } if (!(surface = SDL_SetVideoMode(width, height, 0, flags | SDL_OPENGL))) { -// if (!(surface = SDL_SetVideoMode(1024, 768, 0, flags | SDL_OPENGL))) { throw GeneralException(String("Couldn't set GL mode: ") + SDL_GetError()); } |