ControlInfo control;\r
extern boolean Keyboard[NumCodes];\r
IN_Startup();\r
- IN_Default(0,ctrl_Keyboard);\r
+ IN_Default(0,ctrl_Joystick);\r
while(!IN_qb(sc_Escape))\r
{\r
IN_ReadControl(0,&control);\r
//
// ID Engine
// ID_IN.c - Input Manager
-// v1.0d1
+// v1.0d1w
// By Jason Blochowiak
+// Open Watcom port by sparky4
//
//
def->joyMinX = minx;
def->joyMaxX = maxx;
r = maxx - minx;
- d = r / 5;
+ d = r / 3;
def->threshMinX = ((r / 2) - d) + minx;
def->threshMaxX = ((r / 2) + d) + minx;
def->joyMinY = miny;
def->joyMaxY = maxy;
r = maxy - miny;
- d = r / 5;
+ d = r / 3;
def->threshMinY = ((r / 2) - d) + miny;
def->threshMaxY = ((r / 2) + d) + miny;
checkmouse = true;
for (i = 1;i < __argc;i++)
{
- switch (US_CheckParm(__argv[i],ParmStrings))
+ switch (US_CheckParm(__argv[i],ParmStringsIN))
{
case 0:
checkjoys = false;
LastScan = sc_None;
LastASCII = key_None;
- for (i = 0;i < NumCodes;i++)
- Keyboard[i] = false;
+ memset (Keyboard,0,sizeof(Keyboard));
}
///////////////////////////////////////////////////////////////////////////
//\r
// ID Engine\r
// ID_IN.h - Header file for Input Manager\r
-// v1.0d1\r
-// By Jason Blochowiak\r
+// v1.0d1w\r
+// By Jason Blochowiak
+// Open Watcom port by sparky4\r
//\r
\r
#ifndef __16_IN__\r
#define __16_IN__\r
-\r
+
+#include <string.h>\r
#include "src/lib/lib_head.h"\r
//#include "src/lib/16_us.h"\r
\r
static void (*INL_KeyHook)(void);\r
static void interrupt (*OldKeyVect)(void);\r
\r
-static char *ParmStrings[] = {"nojoys","nomouse",nil};\r
+static char *ParmStringsIN[] = {"nojoys","nomouse",nil};\r
\r
// Function prototypes\r
#define IN_KeyDown(code) (Keyboard[(code)])\r