added debug key handling to request dialog event loop
authorHolger Schemel <info@artsoft.org>
Tue, 14 Jun 2016 21:41:12 +0000 (23:41 +0200)
committerHolger Schemel <info@artsoft.org>
Tue, 14 Jun 2016 21:41:12 +0000 (23:41 +0200)
src/tools.c

index b563b9318c16a897fd2700442b0e1c5bfa034285..611fe20050ef56e228f731deb0fe476cdb743195 100644 (file)
@@ -3685,7 +3685,10 @@ static int RequestHandleEvents(unsigned int req_state)
          }
 
          case EVENT_KEYPRESS:
-           switch (GetEventKey((KeyEvent *)&event, TRUE))
+         {
+           Key key = GetEventKey((KeyEvent *)&event, TRUE);
+
+           switch (key)
            {
              case KSYM_space:
                if (req_state & REQ_CONFIRM)
@@ -3707,12 +3710,15 @@ static int RequestHandleEvents(unsigned int req_state)
                break;
 
              default:
+               HandleKeysDebug(key);
                break;
            }
 
            if (req_state & REQ_PLAYER)
              result = 0;
+
            break;
+         }
 
          case EVENT_KEYRELEASE:
            ClearPlayerAction();