- if(IN_Startup(&in))
- {
- IN_Default(0,&player,ctrl_Joystick, &in);\r
- while(!in.Keyboard[sc_Escape])\r
- {
- IN_ReadControl(0,&player, &in);\r
- //printf("%u\n", in.Keyboard[sc_Escape]);
- //printf("i=%u\n", i);
- printf("");
- //i++;\r
- }
- IN_Shutdown(&in);
- }
+//0000 nibbletest();\r
+//0000 booleantest();\r
+ //printf("dbg_testkeyin=%u dbg_testcontrolnoisy=%u dbg_nogvar.playerinpu=%u\nloop if this is not responsive then please KILL or reset machine sorry!!\n", dbg_testkeyin, dbg_testcontrolnoisy, dbg_nogvar.playerinpu);\r
+ while(!IN_KeyDown(sc_Escape))\r
+ {\r
+//0000 shinkutxt(&gvar);\r
+ IN_ReadControl(&gvar.player[0], &gvar);\r
+ switch(gvar.player[0].enti.d)\r
+ {\r
+ //right movement\r
+ case 3:\r
+ if(gvar.player[0].enti.q<=(TILEWH/(gvar.player[0].enti.speed)))\r
+ {\r
+ gvar.player[0].enti.q++;\r
+ } else { gvar.player[0].enti.q = 1; gvar.player[0].enti.d = 2; }\r
+ break;\r
+\r
+ //left movement\r
+ case 1:\r
+ if(gvar.player[0].enti.q<=(TILEWH/(gvar.player[0].enti.speed)))\r
+ {\r
+ gvar.player[0].enti.q++;\r
+ } else { gvar.player[0].enti.q = 1; gvar.player[0].enti.d = 2; }\r
+ break;\r
+\r
+ //down movement\r
+ case 4:\r
+ if(gvar.player[0].enti.q<=(TILEWH/(gvar.player[0].enti.speed)))\r
+ {\r
+ gvar.player[0].enti.q++;\r
+ } else { gvar.player[0].enti.q = 1; gvar.player[0].enti.d = 2; }\r
+ break;\r
+\r
+ //up movement\r
+ case 0:\r
+ if(gvar.player[0].enti.q<=(TILEWH/(gvar.player[0].enti.speed)))\r
+ {\r
+ gvar.player[0].enti.q++;\r
+ } else { gvar.player[0].enti.q = 1; gvar.player[0].enti.d = 2; }\r
+ break;\r
+ }\r
+ //printf("%u\n", IN_KeyDown(sc_Escape));\r
+ //if(\r
+ IN_qb(sc_9);//>0) printf("IN_qb(sc_9)=%u\n", IN_qb(sc_9));\r
+ if(IN_KeyDown(88)) //speed\r
+ {\r
+ switch(gvar.kurokku.fpscap)\r
+ {\r
+ case 0:\r
+ gvar.kurokku.fpscap=1;\r
+ break;\r
+ case 1:\r
+ gvar.kurokku.fpscap=0;\r
+ break;\r
+ }\r
+ //IN_Ack();\r
+ }\r
+ }\r
+ IN_Shutdown(&gvar);\r
+ //Shutdown16(&gvar);\r