]> 4ch.mooo.com Git - 16.git/blobdiff - src/inputest.c
many improvements for testing have been added ^^
[16.git] / src / inputest.c
index 7818a8a38fa6cbedf575ce9d227aab39d8cdb1b2..55c8ab128b79970fb49632a5e1d5ef4f24f2e1cc 100755 (executable)
        input test\r
 */\r
 #include "src/lib/16_in.h"\r
-
+\r
 void\r
 main(int argc, char *argv[])\r
-{
-       player_t player[MaxPlayers];
-       //extern struct inconfig inpu;
-\r
-       IN_Startup();
+{\r
+       player_t player[MaxPlayers];\r
+       //extern struct inconfig inpu;\r
+       static boolean testkeyin=true;\r
+       static boolean testcontrolnoisy=true;\r
+       IN_Startup();\r
        IN_Default(0,&player,ctrl_Joystick);\r
-       //while(!IN_KeyDown(sc_Escape))
+       //while(!IN_KeyDown(sc_Escape))\r
        while(!IN_KeyDown(sc_Escape))\r
-       {
-               IN_ReadControl(0,&player);
-               //printf("%u\n", IN_KeyDown(sc_Escape));
-               //printf("%u\n", IN_qb(sc_Escape));
-               //clockdw++;
-       }
-       IN_Shutdown();
+       {\r
+               IN_ReadControl(0,&player);\r
+               //printf("%u\n", IN_KeyDown(sc_Escape));\r
+               //printf("%u\n", IN_qb(sc_Escape));\r
+       }\r
+       IN_Shutdown();\r
        //printf("%u\n", in.Keyboard[sc_Escape]);\r
+       printf("%u\n", testkeyin);\r
 }\r