diff --git a/source/blood/src/config.cpp b/source/blood/src/config.cpp index 69d162e0b..34970fe0a 100644 --- a/source/blood/src/config.cpp +++ b/source/blood/src/config.cpp @@ -55,16 +55,6 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. BEGIN_BLD_NS -int32_t MouseFunctions[MAXMOUSEBUTTONS][2]; -int32_t MouseDigitalFunctions[MAXMOUSEAXES][2]; -int32_t MouseAnalogueAxes[MAXMOUSEAXES]; -int32_t MouseAnalogueScale[MAXMOUSEAXES]; -int32_t JoystickFunctions[MAXJOYBUTTONSANDHATS][2]; -int32_t JoystickDigitalFunctions[MAXJOYAXES][2]; -int32_t JoystickAnalogueAxes[MAXJOYAXES]; -int32_t JoystickAnalogueScale[MAXJOYAXES]; -int32_t JoystickAnalogueDead[MAXJOYAXES]; -int32_t JoystickAnalogueSaturate[MAXJOYAXES]; int32_t scripthandle; int32_t setupread; int32_t mus_restartonload; @@ -98,49 +88,6 @@ int gWeaponsV10x; -int32_t CONFIG_AnalogNameToNum(const char *func) -{ - if (!func) - return -1; - - if (!Bstrcasecmp(func,"analog_turning")) - { - return analog_turning; - } - if (!Bstrcasecmp(func,"analog_strafing")) - { - return analog_strafing; - } - if (!Bstrcasecmp(func,"analog_moving")) - { - return analog_moving; - } - if (!Bstrcasecmp(func,"analog_lookingupanddown")) - { - return analog_lookingupanddown; - } - - return -1; -} - - -const char *CONFIG_AnalogNumToName(int32_t func) -{ - switch (func) - { - case analog_turning: - return "analog_turning"; - case analog_strafing: - return "analog_strafing"; - case analog_moving: - return "analog_moving"; - case analog_lookingupanddown: - return "analog_lookingupanddown"; - } - - return NULL; -} - diff --git a/source/blood/src/config.h b/source/blood/src/config.h index b218b353e..c3361edab 100644 --- a/source/blood/src/config.h +++ b/source/blood/src/config.h @@ -25,7 +25,6 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. #define config_public_h_ #include "keyboard.h" -#include "gamecontrol.h" #include "control.h" #include "_control.h" #include "gamedefs.h" @@ -38,18 +37,7 @@ BEGIN_BLD_NS #define MAXRIDECULE 10 #define MAXRIDECULELENGTH 40 #define MAXPLAYERNAME 16 -#define MAXMOUSEAXES 2 -extern int32_t MouseFunctions[MAXMOUSEBUTTONS][2]; -extern int32_t MouseDigitalFunctions[MAXMOUSEAXES][2]; -extern int32_t MouseAnalogueAxes[MAXMOUSEAXES]; -extern int32_t MouseAnalogueScale[MAXMOUSEAXES]; -extern int32_t JoystickFunctions[MAXJOYBUTTONSANDHATS][2]; -extern int32_t JoystickDigitalFunctions[MAXJOYAXES][2]; -extern int32_t JoystickAnalogueAxes[MAXJOYAXES]; -extern int32_t JoystickAnalogueScale[MAXJOYAXES]; -extern int32_t JoystickAnalogueDead[MAXJOYAXES]; -extern int32_t JoystickAnalogueSaturate[MAXJOYAXES]; extern int32_t scripthandle; extern int32_t setupread; extern int32_t configversion; @@ -88,10 +76,6 @@ void CONFIG_SetupJoystick(void); int32_t CONFIG_GetMapBestTime(char const *mapname, uint8_t const *mapmd4); int CONFIG_SetMapBestTime(uint8_t const *mapmd4, int32_t tm); - -int32_t CONFIG_AnalogNameToNum(const char *func); -const char *CONFIG_AnalogNumToName(int32_t func); - END_BLD_NS #endif diff --git a/source/blood/src/gamedefs.h b/source/blood/src/gamedefs.h index aa5105ced..a302ec8f6 100644 --- a/source/blood/src/gamedefs.h +++ b/source/blood/src/gamedefs.h @@ -37,32 +37,14 @@ BEGIN_BLD_NS // config file name #define SETUPFILENAME APPBASENAME ".cfg" -// KEEPINSYNC mact/include/_control.h, build/src/sdlayer.cpp -#define MAXJOYBUTTONS 32 -#define MAXJOYBUTTONSANDHATS (MAXJOYBUTTONS+4) - -// KEEPINSYNC mact/include/_control.h, build/src/sdlayer.cpp -#define MAXMOUSEAXES 2 -#define MAXMOUSEDIGITAL (MAXMOUSEAXES*2) - -// KEEPINSYNC mact/include/_control.h, build/src/sdlayer.cpp -#define MAXJOYAXES 9 -#define MAXJOYDIGITAL (MAXJOYAXES*2) - // default mouse scale #define DEFAULTMOUSEANALOGUESCALE 65536 // default joystick settings -#if defined(GEKKO) -#define DEFAULTJOYSTICKANALOGUESCALE 16384 -#define DEFAULTJOYSTICKANALOGUEDEAD 1000 -#define DEFAULTJOYSTICKANALOGUESATURATE 9500 -#else #define DEFAULTJOYSTICKANALOGUESCALE 65536 #define DEFAULTJOYSTICKANALOGUEDEAD 1000 #define DEFAULTJOYSTICKANALOGUESATURATE 9500 -#endif END_BLD_NS diff --git a/source/common/gamecontrol.cpp b/source/common/gamecontrol.cpp index bc4221d03..4210a1926 100644 --- a/source/common/gamecontrol.cpp +++ b/source/common/gamecontrol.cpp @@ -336,3 +336,77 @@ void CONFIG_SetDefaultKeys(const char *defbinds, bool lazy/*=false*/) } } + +//========================================================================== +// +// +// +//========================================================================== + +int32_t MouseFunctions[MAXMOUSEBUTTONS][2]; +int32_t MouseDigitalFunctions[MAXMOUSEAXES][2]; +int32_t MouseAnalogueAxes[MAXMOUSEAXES]; +int32_t MouseAnalogueScale[MAXMOUSEAXES]; +int32_t JoystickFunctions[MAXJOYBUTTONSANDHATS][2]; +int32_t JoystickDigitalFunctions[MAXJOYAXES][2]; +int32_t JoystickAnalogueAxes[MAXJOYAXES]; +int32_t JoystickAnalogueScale[MAXJOYAXES]; +int32_t JoystickAnalogueDead[MAXJOYAXES]; +int32_t JoystickAnalogueSaturate[MAXJOYAXES]; +int32_t JoystickAnalogueInvert[MAXJOYAXES]; + +//========================================================================== +// +// +// +//========================================================================== + +int32_t CONFIG_AnalogNameToNum(const char* func) +{ + if (!func) + return -1; + + if (!Bstrcasecmp(func, "analog_turning")) + { + return analog_turning; + } + if (!Bstrcasecmp(func, "analog_strafing")) + { + return analog_strafing; + } + if (!Bstrcasecmp(func, "analog_moving")) + { + return analog_moving; + } + if (!Bstrcasecmp(func, "analog_lookingupanddown")) + { + return analog_lookingupanddown; + } + + return -1; +} + + +//========================================================================== +// +// +// +//========================================================================== + +const char* CONFIG_AnalogNumToName(int32_t func) +{ + switch (func) + { + case analog_turning: + return "analog_turning"; + case analog_strafing: + return "analog_strafing"; + case analog_moving: + return "analog_moving"; + case analog_lookingupanddown: + return "analog_lookingupanddown"; + } + + return NULL; +} + diff --git a/source/common/gamecontrol.h b/source/common/gamecontrol.h index 9a8be7ddd..3c473b500 100644 --- a/source/common/gamecontrol.h +++ b/source/common/gamecontrol.h @@ -1,6 +1,8 @@ #pragma once #include "keyboard.h" +#include "control.h" +#include "_control.h" // Order is that of EDuke32 by necessity because it exposes the key binds to scripting by index instead of by name. enum GameFunction_t @@ -104,3 +106,24 @@ const char* CONFIG_FunctionNumToRealName(int32_t func); void CONFIG_ReplaceButtonName(int num, const char* text); void CONFIG_DeleteButtonName(int num); void CONFIG_MapKey(int which, kb_scancode key1, kb_scancode oldkey1, kb_scancode key2, kb_scancode oldkey2); + +// I am not sure if anything below will survive for long... + +#define MAXMOUSEAXES 2 +#define MAXMOUSEDIGITAL (MAXMOUSEAXES*2) + + +extern int32_t MouseFunctions[MAXMOUSEBUTTONS][2]; +extern int32_t MouseDigitalFunctions[MAXMOUSEAXES][2]; +extern int32_t MouseAnalogueAxes[MAXMOUSEAXES]; +extern int32_t MouseAnalogueScale[MAXMOUSEAXES]; +extern int32_t JoystickFunctions[MAXJOYBUTTONSANDHATS][2]; +extern int32_t JoystickDigitalFunctions[MAXJOYAXES][2]; +extern int32_t JoystickAnalogueAxes[MAXJOYAXES]; +extern int32_t JoystickAnalogueScale[MAXJOYAXES]; +extern int32_t JoystickAnalogueDead[MAXJOYAXES]; +extern int32_t JoystickAnalogueSaturate[MAXJOYAXES]; +extern int32_t JoystickAnalogueInvert[MAXJOYAXES]; + +int32_t CONFIG_AnalogNameToNum(const char* func); +const char* CONFIG_AnalogNumToName(int32_t func); diff --git a/source/duke3d/src/config.cpp b/source/duke3d/src/config.cpp index 14f732053..f9935d514 100644 --- a/source/duke3d/src/config.cpp +++ b/source/duke3d/src/config.cpp @@ -42,70 +42,36 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. BEGIN_DUKE_NS -int32_t CONFIG_AnalogNameToNum(const char *func) -{ - if (!func) - return -1; - else if (!Bstrcasecmp(func, "analog_turning")) - return analog_turning; - else if (!Bstrcasecmp(func, "analog_strafing")) - return analog_strafing; - else if (!Bstrcasecmp(func, "analog_moving")) - return analog_moving; - else if (!Bstrcasecmp(func, "analog_lookingupanddown")) - return analog_lookingupanddown; - else - return -1; -} - - -static char const * CONFIG_AnalogNumToName(int32_t func) -{ - switch (func) - { - case analog_turning: - return "analog_turning"; - case analog_strafing: - return "analog_strafing"; - case analog_moving: - return "analog_moving"; - case analog_lookingupanddown: - return "analog_lookingupanddown"; - } - - return ""; -} - static void CONFIG_SetJoystickButtonFunction(int i, int j, int function) { - ud.config.JoystickFunctions[i][j] = function; + JoystickFunctions[i][j] = function; CONTROL_MapButton(function, i, j, controldevice_joystick); } static void CONFIG_SetJoystickAnalogAxisScale(int i, int scale) { - ud.config.JoystickAnalogueScale[i] = scale; + JoystickAnalogueScale[i] = scale; CONTROL_SetAnalogAxisScale(i, scale, controldevice_joystick); } static void CONFIG_SetJoystickAnalogAxisInvert(int i, int invert) { - ud.config.JoystickAnalogueInvert[i] = invert; + JoystickAnalogueInvert[i] = invert; CONTROL_SetAnalogAxisInvert(i, invert, controldevice_joystick); } static void CONFIG_SetJoystickAnalogAxisDeadSaturate(int i, int dead, int saturate) { - ud.config.JoystickAnalogueDead[i] = dead; - ud.config.JoystickAnalogueSaturate[i] = saturate; + JoystickAnalogueDead[i] = dead; + JoystickAnalogueSaturate[i] = saturate; joySetDeadZone(i, dead, saturate); } static void CONFIG_SetJoystickDigitalAxisFunction(int i, int j, int function) { - ud.config.JoystickDigitalFunctions[i][j] = function; + JoystickDigitalFunctions[i][j] = function; CONTROL_MapDigitalAxis(i, function, j, controldevice_joystick); } static void CONFIG_SetJoystickAnalogAxisFunction(int i, int function) { - ud.config.JoystickAnalogueAxes[i] = function; + JoystickAnalogueAxes[i] = function; CONTROL_MapAnalogAxis(i, function, controldevice_joystick); } @@ -215,32 +181,32 @@ void CONFIG_SetDefaults(void) Bstrcpy(ud.ridecule[9], "AARRRGHHHHH!!!"); #endif - memset(ud.config.MouseFunctions, -1, sizeof(ud.config.MouseFunctions)); - memset(ud.config.MouseDigitalFunctions, -1, sizeof(ud.config.MouseDigitalFunctions)); - memset(ud.config.JoystickFunctions, -1, sizeof(ud.config.JoystickFunctions)); - memset(ud.config.JoystickDigitalFunctions, -1, sizeof(ud.config.JoystickDigitalFunctions)); + memset(MouseFunctions, -1, sizeof(MouseFunctions)); + memset(MouseDigitalFunctions, -1, sizeof(MouseDigitalFunctions)); + memset(JoystickFunctions, -1, sizeof(JoystickFunctions)); + memset(JoystickDigitalFunctions, -1, sizeof(JoystickDigitalFunctions)); for (int i=0; i=4) continue; - ud.config.MouseFunctions[i][1] = CONFIG_FunctionNameToNum(mouseclickeddefaults[i]); - CONTROL_MapButton(ud.config.MouseFunctions[i][1], i, 1, controldevice_mouse); + MouseFunctions[i][1] = CONFIG_FunctionNameToNum(mouseclickeddefaults[i]); + CONTROL_MapButton(MouseFunctions[i][1], i, 1, controldevice_mouse); } for (int i=0; i= (MAXMOUSEBUTTONS-2)) continue; - if (CONFIG_FunctionNumToName(ud.config.MouseFunctions[i][1])) + if (CONFIG_FunctionNumToName(MouseFunctions[i][1])) { Bsprintf(buf, "MouseButtonClicked%d", i); - SCRIPT_PutString(ud.config.scripthandle, "Controls", buf, CONFIG_FunctionNumToName(ud.config.MouseFunctions[i][1])); + SCRIPT_PutString(ud.config.scripthandle, "Controls", buf, CONFIG_FunctionNumToName(MouseFunctions[i][1])); } } for (int i=0; i>1][i&1]; + MEO_JOYSTICKBTNS[i].data = &JoystickFunctions[i>>1][i&1]; } M_JOYSTICKBTNS.numEntries = 2*joystick.numButtons + 8*joystick.numHats; for (i = 0; i < joystick.numAxes; ++i) @@ -3157,13 +3157,13 @@ static void Menu_EntryLinkActivate(MenuEntry_t *entry) case MENU_JOYSTICKAXES: M_JOYSTICKAXIS.title = joyGetName(0, M_JOYSTICKAXES.currentEntry); - MEO_JOYSTICKAXIS_ANALOG.data = &ud.config.JoystickAnalogueAxes[M_JOYSTICKAXES.currentEntry]; - MEO_JOYSTICKAXIS_SCALE.variable = &ud.config.JoystickAnalogueScale[M_JOYSTICKAXES.currentEntry]; - MEO_JOYSTICKAXIS_INVERT.data = &ud.config.JoystickAnalogueInvert[M_JOYSTICKAXES.currentEntry]; - MEO_JOYSTICKAXIS_DEAD.variable = &ud.config.JoystickAnalogueDead[M_JOYSTICKAXES.currentEntry]; - MEO_JOYSTICKAXIS_SATU.variable = &ud.config.JoystickAnalogueSaturate[M_JOYSTICKAXES.currentEntry]; - MEO_JOYSTICKAXIS_DIGITALNEGATIVE.data = &ud.config.JoystickDigitalFunctions[M_JOYSTICKAXES.currentEntry][0]; - MEO_JOYSTICKAXIS_DIGITALPOSITIVE.data = &ud.config.JoystickDigitalFunctions[M_JOYSTICKAXES.currentEntry][1]; + MEO_JOYSTICKAXIS_ANALOG.data = &JoystickAnalogueAxes[M_JOYSTICKAXES.currentEntry]; + MEO_JOYSTICKAXIS_SCALE.variable = &JoystickAnalogueScale[M_JOYSTICKAXES.currentEntry]; + MEO_JOYSTICKAXIS_INVERT.data = &JoystickAnalogueInvert[M_JOYSTICKAXES.currentEntry]; + MEO_JOYSTICKAXIS_DEAD.variable = &JoystickAnalogueDead[M_JOYSTICKAXES.currentEntry]; + MEO_JOYSTICKAXIS_SATU.variable = &JoystickAnalogueSaturate[M_JOYSTICKAXES.currentEntry]; + MEO_JOYSTICKAXIS_DIGITALNEGATIVE.data = &JoystickDigitalFunctions[M_JOYSTICKAXES.currentEntry][0]; + MEO_JOYSTICKAXIS_DIGITALPOSITIVE.data = &JoystickDigitalFunctions[M_JOYSTICKAXES.currentEntry][1]; break; case MENU_CHEATS: diff --git a/source/rr/src/config.cpp b/source/rr/src/config.cpp index dd98c898e..f4f21e763 100644 --- a/source/rr/src/config.cpp +++ b/source/rr/src/config.cpp @@ -42,48 +42,6 @@ BEGIN_RR_NS -int32_t CONFIG_AnalogNameToNum(const char *func) -{ - if (!func) - return -1; - - if (!Bstrcasecmp(func,"analog_turning")) - { - return analog_turning; - } - if (!Bstrcasecmp(func,"analog_strafing")) - { - return analog_strafing; - } - if (!Bstrcasecmp(func,"analog_moving")) - { - return analog_moving; - } - if (!Bstrcasecmp(func,"analog_lookingupanddown")) - { - return analog_lookingupanddown; - } - - return -1; -} - - -const char *CONFIG_AnalogNumToName(int32_t func) -{ - switch (func) - { - case analog_turning: - return "analog_turning"; - case analog_strafing: - return "analog_strafing"; - case analog_moving: - return "analog_moving"; - case analog_lookingupanddown: - return "analog_lookingupanddown"; - } - - return NULL; -} @@ -210,54 +168,54 @@ void CONFIG_SetDefaults(void) // JBF 20031211 - memset(ud.config.MouseFunctions, -1, sizeof(ud.config.MouseFunctions)); + memset(MouseFunctions, -1, sizeof(MouseFunctions)); for (i=0; i=4) continue; - ud.config.MouseFunctions[i][1] = CONFIG_FunctionNameToNum(mouseclickeddefaults[i]); - CONTROL_MapButton(ud.config.MouseFunctions[i][1], i, 1, controldevice_mouse); + MouseFunctions[i][1] = CONFIG_FunctionNameToNum(mouseclickeddefaults[i]); + CONTROL_MapButton(MouseFunctions[i][1], i, 1, controldevice_mouse); } - memset(ud.config.MouseDigitalFunctions, -1, sizeof(ud.config.MouseDigitalFunctions)); + memset(MouseDigitalFunctions, -1, sizeof(MouseDigitalFunctions)); for (i=0; i= (MAXMOUSEBUTTONS-2)) continue; - if (CONFIG_FunctionNumToName(ud.config.MouseFunctions[dummy][1])) + if (CONFIG_FunctionNumToName(MouseFunctions[dummy][1])) { Bsprintf(buf, "MouseButtonClicked%d", dummy); - SCRIPT_PutString(ud.config.scripthandle, "Controls", buf, CONFIG_FunctionNumToName(ud.config.MouseFunctions[dummy][1])); + SCRIPT_PutString(ud.config.scripthandle, "Controls", buf, CONFIG_FunctionNumToName(MouseFunctions[dummy][1])); } } for (dummy=0; dummy>1][i&1]; + MEO_JOYSTICKBTNS[i].data = &JoystickFunctions[i>>1][i&1]; } M_JOYSTICKBTNS.numEntries = 2*joystick.numButtons + 8*joystick.numHats; for (i = 0; i < joystick.numAxes; ++i) @@ -3544,12 +3544,12 @@ static void Menu_EntryLinkActivate(MenuEntry_t *entry) case MENU_JOYSTICKAXES: M_JOYSTICKAXIS.title = joyGetName(0, M_JOYSTICKAXES.currentEntry); - MEO_JOYSTICKAXIS_ANALOG.data = &ud.config.JoystickAnalogueAxes[M_JOYSTICKAXES.currentEntry]; - MEO_JOYSTICKAXIS_SCALE.variable = &ud.config.JoystickAnalogueScale[M_JOYSTICKAXES.currentEntry]; - MEO_JOYSTICKAXIS_DEAD.variable = &ud.config.JoystickAnalogueDead[M_JOYSTICKAXES.currentEntry]; - MEO_JOYSTICKAXIS_SATU.variable = &ud.config.JoystickAnalogueSaturate[M_JOYSTICKAXES.currentEntry]; - MEO_JOYSTICKAXIS_DIGITALNEGATIVE.data = &ud.config.JoystickDigitalFunctions[M_JOYSTICKAXES.currentEntry][0]; - MEO_JOYSTICKAXIS_DIGITALPOSITIVE.data = &ud.config.JoystickDigitalFunctions[M_JOYSTICKAXES.currentEntry][1]; + MEO_JOYSTICKAXIS_ANALOG.data = &JoystickAnalogueAxes[M_JOYSTICKAXES.currentEntry]; + MEO_JOYSTICKAXIS_SCALE.variable = &JoystickAnalogueScale[M_JOYSTICKAXES.currentEntry]; + MEO_JOYSTICKAXIS_DEAD.variable = &JoystickAnalogueDead[M_JOYSTICKAXES.currentEntry]; + MEO_JOYSTICKAXIS_SATU.variable = &JoystickAnalogueSaturate[M_JOYSTICKAXES.currentEntry]; + MEO_JOYSTICKAXIS_DIGITALNEGATIVE.data = &JoystickDigitalFunctions[M_JOYSTICKAXES.currentEntry][0]; + MEO_JOYSTICKAXIS_DIGITALPOSITIVE.data = &JoystickDigitalFunctions[M_JOYSTICKAXES.currentEntry][1]; break; case MENU_CHEATS: diff --git a/source/sw/src/config.cpp b/source/sw/src/config.cpp index 387deefe8..c416bed2f 100644 --- a/source/sw/src/config.cpp +++ b/source/sw/src/config.cpp @@ -100,51 +100,6 @@ static int32_t scripthandle = -1; -/* -=================== -= -= CONFIG_AnalogNameToNum -= -=================== -*/ -int32_t CONFIG_AnalogNameToNum(const char *func) -{ - if (!Bstrcasecmp(func,"analog_turning")) - { - return analog_turning; - } - if (!Bstrcasecmp(func,"analog_strafing")) - { - return analog_strafing; - } - if (!Bstrcasecmp(func,"analog_moving")) - { - return analog_moving; - } - if (!Bstrcasecmp(func,"analog_lookingupanddown")) - { - return analog_lookingupanddown; - } - return -1; -} - -const char *CONFIG_AnalogNumToName(int32_t func) -{ - switch (func) - { - case analog_turning: - return "analog_turning"; - case analog_strafing: - return "analog_strafing"; - case analog_moving: - return "analog_moving"; - case analog_lookingupanddown: - return "analog_lookingupanddown"; - default: break; - } - - return NULL; -} /* =================== diff --git a/source/sw/src/config.h b/source/sw/src/config.h index 6694d672a..576c5721b 100644 --- a/source/sw/src/config.h +++ b/source/sw/src/config.h @@ -112,8 +112,6 @@ void CONFIG_WriteSetup(void); void WriteCommitFile(int32_t gametype); void CONFIG_GetSetupFilename(void); -const char *CONFIG_AnalogNumToName(int32_t func); -int32_t CONFIG_AnalogNameToNum(const char *func); END_SW_NS #endif diff --git a/source/sw/src/gamedefs.h b/source/sw/src/gamedefs.h index ed4fa9644..529f7b0dc 100644 --- a/source/sw/src/gamedefs.h +++ b/source/sw/src/gamedefs.h @@ -55,17 +55,6 @@ Prepared for public release: 03/28/2005 - Charlie Wiederhold, 3D Realms //#define MAXPLAYERS 8 //#endif -// Number of Mouse buttons - -//#define MAXMOUSEBUTTONS 6 - -// Number of JOY buttons - -#define MAXJOYBUTTONS (32+4) - -// Number of EXTERNAL buttons - -//#define MAXEXTERNALBUTTONS 6 // max path+track length for waveform music files #define MAXWAVEFORMTRACKLENGTH 256 @@ -118,16 +107,6 @@ Prepared for public release: 03/28/2005 - Charlie Wiederhold, 3D Realms // Number of Mouse Axes -#define MAXMOUSEAXES 2 - -// Number of JOY axes - -#define MAXJOYAXES 6 - -// Number of GAMEPAD axes - -#define MAXGAMEPADAXES 2 - #ifdef __FLAT__ #define CONTROLSHIFT 0 #else @@ -153,10 +132,6 @@ Prepared for public release: 03/28/2005 - Charlie Wiederhold, 3D Realms #define MOUSECONTROLBASE ((1<<(15-CONTROLSHIFT))-1) -// DEFAULT mouse sensitivity scale - -#define DEFAULTMOUSESENSITIVITY (1<<(15-CONTROLSHIFT)) - enum { gametype_network=3,