diff options
author | Simon Howard | 2009-06-10 19:03:08 +0000 |
---|---|---|
committer | Simon Howard | 2009-06-10 19:03:08 +0000 |
commit | ac28eb407daaee8a92fb9efb28ac2426c4edb97b (patch) | |
tree | cd4f3f467ea3e3e5daddb65f82af25b94eeb1960 /src/g_game.c | |
parent | b6491fa4aefc073a760d4bad51f55c2d6c0f5f35 (diff) | |
download | chocolate-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.c | 12 |
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: |