projects
/
rocksndiamonds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d719629
)
added debug key handling to request dialog event loop
author
Holger Schemel
<info@artsoft.org>
Tue, 14 Jun 2016 21:41:12 +0000
(23:41 +0200)
committer
Holger Schemel
<info@artsoft.org>
Tue, 14 Jun 2016 21:41:12 +0000
(23:41 +0200)
src/tools.c
patch
|
blob
|
history
diff --git
a/src/tools.c
b/src/tools.c
index b563b9318c16a897fd2700442b0e1c5bfa034285..611fe20050ef56e228f731deb0fe476cdb743195 100644
(file)
--- 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();