]> 4ch.mooo.com Git - 16.git/blobdiff - src/inputest.c
modified: 16.exe
[16.git] / src / inputest.c
index 15a1b3a5eb30565f2b0d88a9ee332051f89e28f7..6fdf5567f927dee9fede288c123565d34385dff9 100644 (file)
        input test\r
 */\r
 #include "src/lib/16_in.h"\r
-\r
+
 void\r
 main(int argc, char *argv[])\r
-{\r
-       ControlInfo control;\r
-       IN_Startup();\r
-       IN_Default(0,ctrl_Keyboard);\r
-       IN_ReadControl(0,&control);\r
-       IN_Shutdown();\r
+{
+       player_t player[MaxPlayers];
+       //extern struct inconfig inpu;
+\r
+       IN_Startup();
+       IN_Default(0,&player,ctrl_Joystick);\r
+       //while(!IN_KeyDown(sc_Escape))
+       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();
+       //printf("%u\n", in.Keyboard[sc_Escape]);\r
 }\r