#include "src/lib/16_in.h"
+/*\r
+=============================================================================\r
+\r
+ GLOBAL VARIABLES\r
+\r
+=============================================================================\r
+*/\r
+// Global variables
+ boolean JoystickCalibrated=false; // MDM (GAMERS EDGE) - added\r
+ ControlType ControlTypeUsed; // MDM (GAMERS EDGE) - added\r
+ boolean Keyboard[NumCodes];\r
+ boolean Paused;\r
+ char LastASCII;\r
+ ScanCode LastScan;\r
+\r
+ //KeyboardDef KbdDefs = {0x1d,0x38,0x47,0x48,0x49,0x4b,0x4d,0x4f,0x50,0x51};\r
+ JoystickDef JoyDefs[MaxJoys];\r
+ ControlType Controls[MaxPlayers];\r
+\r
+ dword MouseDownCount;
+
// Internal routines
///////////////////////////////////////////////////////////////////////////
//
static boolean JoysPresent[MaxJoys];\r
static boolean JoyPadPresent;\r
\r
-\r
// Global variables\r
- static boolean JoystickCalibrated=false; // MDM (GAMERS EDGE) - added\r
- static ControlType ControlTypeUsed; // MDM (GAMERS EDGE) - added\r
+ extern boolean JoystickCalibrated; // MDM (GAMERS EDGE) - added\r
+ extern ControlType ControlTypeUsed; // MDM (GAMERS EDGE) - added\r
\r
- static boolean Keyboard[NumCodes];\r
- static boolean Paused;\r
- static char LastASCII;\r
- static ScanCode LastScan;\r
+ extern boolean Keyboard[NumCodes];\r
+ extern boolean Paused;\r
+ extern char LastASCII;\r
+ extern ScanCode LastScan;\r
\r
+ //extern KeyboardDef KbdDefs[];
static KeyboardDef KbdDefs[] = {0x1d,0x38,0x47,0x48,0x49,0x4b,0x4d,0x4f,0x50,0x51};\r
- static JoystickDef JoyDefs[MaxJoys];\r
- static ControlType Controls[MaxPlayers];\r
+ extern JoystickDef JoyDefs[MaxJoys];\r
+ extern ControlType Controls[MaxPlayers];\r
\r
- static dword MouseDownCount;\r
+ extern dword MouseDownCount;\r
\r
#ifdef DEMO0\r
static Demo DemoMode = demo_Off;\r