From 324a506aacbc799c7932482e9aecfa5fc5081669 Mon Sep 17 00:00:00 2001 From: Mark Vejvoda Date: Wed, 9 Mar 2011 06:00:46 +0000 Subject: [PATCH] - more debugging for keyboard issues --- source/glest_game/main/main.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/glest_game/main/main.cpp b/source/glest_game/main/main.cpp index 0cfa08a9..d71f1cbe 100644 --- a/source/glest_game/main/main.cpp +++ b/source/glest_game/main/main.cpp @@ -715,14 +715,17 @@ void MainWindow::eventKeyDown(char key){ } void MainWindow::eventKeyUp(char key){ + SystemFlags::OutputDebug(SystemFlags::debugSystem,"In [%s::%s Line: %d] [%d]\n",__FILE__,__FUNCTION__,__LINE__,key); if(program == NULL) { throw runtime_error("In [MainWindow::eventKeyUp] ERROR, program == NULL!"); } program->keyUp(key); + SystemFlags::OutputDebug(SystemFlags::debugSystem,"In [%s::%s Line: %d] [%d]\n",__FILE__,__FUNCTION__,__LINE__,key); } void MainWindow::eventKeyPress(char c){ + SystemFlags::OutputDebug(SystemFlags::debugSystem,"In [%s::%s Line: %d] [%d]\n",__FILE__,__FUNCTION__,__LINE__,c); if(program == NULL) { throw runtime_error("In [MainWindow::eventKeyPress] ERROR, program == NULL!"); } @@ -750,6 +753,7 @@ void MainWindow::eventKeyPress(char c){ SystemFlags::OutputDebug(SystemFlags::debugSystem,"In [%s::%s Line: %d] Window::lastShowMouseState = %d\n",__FILE__,__FUNCTION__,__LINE__,Window::lastShowMouseState); } } + SystemFlags::OutputDebug(SystemFlags::debugSystem,"In [%s::%s Line: %d] [%d]\n",__FILE__,__FUNCTION__,__LINE__,c); } void MainWindow::eventActivate(bool active){