\r
#include "src/lib/16_in.h"\r
\r
-byte testkeyin=0,testcontrolnoisy=0;\r
+byte testkeyin=0,testcontrolnoisy=0,testctrltype=0;\r
\r
/*\r
=============================================================================\r
{\r
boolean MousePresent;\r
boolean JoysPresent[MaxJoys];\r
- boolean JoyPadPresent[MaxPads];\r
+// boolean JoyPadPresent[MaxPads];\r
boolean Keyboard[NumCodes];\r
boolean Paused;\r
char LastASCII;\r
\r
KeyboardDef KbdDefs[MaxKbds];\r
JoystickDef JoyDefs[MaxJoys];\r
- JoypadDef JoypadDefs[MaxPads];\r
+// JoypadDef JoypadDefs[MaxPads];\r
} inpu;\r
\r
//extern inconfig inpu;\r
IN_Default(boolean gotit,player_t *player,ControlType nt)\r
{\r
int i;\r
- if\r
+ /*if\r
(\r
(!gotit)\r
|| ((nt == ctrl_Joystick1) && !inpu.JoysPresent[0])\r
|| ((nt == ctrl_Joystick2) && !inpu.JoysPresent[1])\r
|| ((nt == ctrl_Mouse) && !inpu.MousePresent)\r
- || ((nt == ctrl_Joypad1) && !inpu.JoyPadPresent[0])\r
- || ((nt == ctrl_Joypad2) && !inpu.JoyPadPresent[1])\r
+// || ((nt == ctrl_Joypad1) && !inpu.JoyPadPresent[0])\r
+// || ((nt == ctrl_Joypad2) && !inpu.JoyPadPresent[1])\r
)\r
- nt = ctrl_Keyboard1;\r
+ nt = ctrl_Keyboard1;*/\r
inpu.KbdDefs[0].button0 = 0x1c;\r
inpu.KbdDefs[0].button1 = 0x38;\r
//in.KbdDefs[0].upleft = 0x47;\r
else\r
{\r
#endif\r
+ //if(testctrltype>0) printf("player[pn].Controls=%c\n", player[pn].Controls);\r
switch (type = player[pn].Controls)\r
{\r
case ctrl_Keyboard1:\r
buttons += 1 << 1;\r
realdelta = false;\r
break;\r
- case ctrl_Joypad1:\r
- case ctrl_Joypad2:\r
+// case ctrl_Joypad1:\r
+// case ctrl_Joypad2:\r
case ctrl_Joystick1:\r
case ctrl_Joystick2:\r
INL_GetJoyDelta(type - ctrl_Joystick,&dx,&dy,false);\r
//#define TESTCONTROLNOISY\r
#endif\r
\r
-extern byte testkeyin,testcontrolnoisy;\r
+extern byte testkeyin,testcontrolnoisy,testctrltype;\r
\r
//if else for gfxtesting and direction\r
//player[pn].d == 2 ||\r
ctrl_Joystick,\r
ctrl_Joystick1 = ctrl_Joystick,ctrl_Joystick2,\r
ctrl_Mouse,\r
- ctrl_Joypad,\r
- ctrl_Joypad1 = ctrl_Joypad,ctrl_Joypad2\r
+// ctrl_Joypad,\r
+// ctrl_Joypad1 = ctrl_Joypad,ctrl_Joypad2\r
} ControlType;\r
typedef enum {\r
motion_Left = -1,motion_Up = -1,\r
joyMultXL,joyMultYL,\r
joyMultXH,joyMultYH;\r
} JoystickDef;\r
-typedef struct\r
-{\r
- boolean w;\r
-} JoypadDef;\r
+// typedef struct\r
+// {\r
+// boolean w;\r
+// } JoypadDef;\r
\r
typedef struct\r
{\r