summaryrefslogtreecommitdiff
path: root/src/doom
diff options
context:
space:
mode:
authorSimon Howard2008-09-10 22:28:23 +0000
committerSimon Howard2008-09-10 22:28:23 +0000
commitcf42188fb493250133fd15fccb61faaf0444a03a (patch)
tree4acff5cbc6fb82b8552e2e55e8cc847ef5c0ab8d /src/doom
parent154d9d8024ffad9027981eb586913d14c6c50d60 (diff)
downloadchocolate-doom-cf42188fb493250133fd15fccb61faaf0444a03a.tar.gz
chocolate-doom-cf42188fb493250133fd15fccb61faaf0444a03a.tar.bz2
chocolate-doom-cf42188fb493250133fd15fccb61faaf0444a03a.zip
Split out variables for controls into common m_controls.c.
Subversion-branch: /branches/raven-branch Subversion-revision: 1219
Diffstat (limited to 'src/doom')
-rw-r--r--src/doom/g_game.c46
1 files changed, 1 insertions, 45 deletions
diff --git a/src/doom/g_game.c b/src/doom/g_game.c
index defcf368..d819af8d 100644
--- a/src/doom/g_game.c
+++ b/src/doom/g_game.c
@@ -39,6 +39,7 @@
#include "z_zone.h"
#include "f_finale.h"
#include "m_argv.h"
+#include "m_controls.h"
#include "m_misc.h"
#include "m_menu.h"
#include "m_random.h"
@@ -158,51 +159,6 @@ wbstartstruct_t wminfo; // parms for world map / intermission
byte consistancy[MAXPLAYERS][BACKUPTICS];
-
-//
-// Controls
-//
-int key_right = KEY_RIGHTARROW;
-int key_left = KEY_LEFTARROW;
-
-int key_up = KEY_UPARROW;
-int key_down = KEY_DOWNARROW;
-int key_strafeleft = ',';
-int key_straferight = '.';
-int key_fire = KEY_RCTRL;
-int key_use = ' ';
-int key_strafe = KEY_RALT;
-int key_speed = KEY_RSHIFT;
-
-int mousebfire = 0;
-int mousebstrafe = 1;
-int mousebforward = 2;
-
-int mousebstrafeleft = -1;
-int mousebstraferight = -1;
-int mousebbackward = -1;
-int mousebuse = -1;
-
-// Control whether if a mouse button is double clicked, it acts like
-// "use" has been pressed
-
-int dclick_use = 1;
-
-int joybfire = 0;
-int joybstrafe = 1;
-int joybuse = 3;
-int joybspeed = 2;
-int joybstrafeleft = -1;
-int joybstraferight = -1;
-
-// fraggle: Disallow mouse and joystick movement to cause forward/backward
-// motion. Specified with the '-novert' command line parameter.
-// This is an int to allow saving to config file
-
-int novert = 0;
-
-
-
#define MAXPLMOVE (forwardmove[1])
#define TURBOTHRESHOLD 0x32