From: Holger Schemel Date: Tue, 14 Jun 2016 21:41:12 +0000 (+0200) Subject: added debug key handling to request dialog event loop X-Git-Tag: 4.0.0.0-rc3~4 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=1e2b02a8e4804c085fffd0fe6b70cc1c2b4017b3;p=rocksndiamonds.git added debug key handling to request dialog event loop --- diff --git a/src/tools.c b/src/tools.c index b563b931..611fe200 100644 --- a/src/tools.c +++ b/src/tools.c @@ -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();