player_t player[MaxPlayers];\r
//extern struct inconfig inpu;\r
testkeyin=1;\r
- testcontrolnoisy=0;\r
- testctrltype=0;\r
+ testcontrolnoisy=1;\r
IN_Startup();\r
IN_Default(0,&player,ctrl_Joystick1);\r
//while(!IN_KeyDown(sc_Escape))\r
printf("version %s\n", VERSION);\r
printf("testkeyin=%u\n", testkeyin);\r
printf("testcontrolnoisy=%u\n", testcontrolnoisy);\r
- printf("testctrltype=%u\n", testctrltype);\r
}\r
\r
#include "src/lib/16_in.h"\r
\r
-boolean testkeyin=0,testcontrolnoisy=0,testctrltype=0;\r
+boolean testkeyin=0,testcontrolnoisy=0;\r
\r
/*\r
=============================================================================\r
IN_Default(boolean gotit,player_t *player,ControlType nt)\r
{\r
int i;\r
- if(testctrltype==0)\r
if\r
(\r
(!gotit)\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
}\r
}\r
#endif\r
-//#ifdef TESTCONTROLNOISY\r
if(testcontrolnoisy > 0)\r
-if((inpu.Keyboard[def->up] || inpu.Keyboard[def->down] || inpu.Keyboard[def->left] || inpu.Keyboard[def->right]) || player[pn].q>1)\r
+if(player[pn].d/*(inpu.Keyboard[def->up] || inpu.Keyboard[def->down] || inpu.Keyboard[def->left] || inpu.Keyboard[def->right])*/ || player[pn].q>1)\r
{\r
printf("q=%d ", player[pn].q);\r
printf("cpee=%c ", dirchar(conpee));\r
//printf("(my)=%d ", my);\r
//printf("[%d] ", mx+my);\r
printf("pdir=%c d=%c dir=%c ", dirchar(player[pn].pdir), dirchar(player[pn].d), dirchar(player[pn].info.dir));\r
- printf("%c%d %c%d %c%d %c%d\n", dirchar(0), inpu.Keyboard[def->up], dirchar(4), inpu.Keyboard[def->down], dirchar(1), inpu.Keyboard[def->left], dirchar(3), inpu.Keyboard[def->right]);\r
+ if(realdelta) printf("dx=%u dy=%u mx=%u my=%u", player[pn].info.x, player[pn].info.y, player[pn].info.xaxis, player[pn].info.yaxis);\r
+ else if(!realdelta) printf("%c%d %c%d %c%d %c%d", dirchar(0), inpu.Keyboard[def->up], dirchar(4), inpu.Keyboard[def->down], dirchar(1), inpu.Keyboard[def->left], dirchar(3), inpu.Keyboard[def->right]);\r
+ printf("\n");\r
}\r
-//#endif\r
}\r
\r
///////////////////////////////////////////////////////////////////////////\r