summaryrefslogtreecommitdiff
path: root/src/g_game.c
diff options
context:
space:
mode:
authorSimon Howard2009-06-10 19:03:08 +0000
committerSimon Howard2009-06-10 19:03:08 +0000
commitac28eb407daaee8a92fb9efb28ac2426c4edb97b (patch)
treecd4f3f467ea3e3e5daddb65f82af25b94eeb1960 /src/g_game.c
parentb6491fa4aefc073a760d4bad51f55c2d6c0f5f35 (diff)
downloadchocolate-doom-ac28eb407daaee8a92fb9efb28ac2426c4edb97b.tar.gz
chocolate-doom-ac28eb407daaee8a92fb9efb28ac2426c4edb97b.tar.bz2
chocolate-doom-ac28eb407daaee8a92fb9efb28ac2426c4edb97b.zip
Add key bindings for pause, message refresh.
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 1586
Diffstat (limited to 'src/g_game.c')
-rw-r--r--src/g_game.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/g_game.c b/src/g_game.c
index cd070884..8255fdd0 100644
--- a/src/g_game.c
+++ b/src/g_game.c
@@ -182,6 +182,8 @@ int key_weapon5 = '5';
int key_weapon6 = '6';
int key_weapon7 = '7';
int key_weapon8 = '8';
+
+int key_pause = KEY_PAUSE;
int mousebfire = 0;
int mousebstrafe = 1;
@@ -790,13 +792,15 @@ boolean G_Responder (event_t* ev)
switch (ev->type)
{
case ev_keydown:
- if (ev->data1 == KEY_PAUSE)
+ if (ev->data1 == key_pause)
{
sendpause = true;
- return true;
- }
- if (ev->data1 <NUMKEYS)
+ }
+ else if (ev->data1 <NUMKEYS)
+ {
gamekeydown[ev->data1] = true;
+ }
+
return true; // eat key down events
case ev_keyup: