X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Finputest.c;h=7818a8a38fa6cbedf575ce9d227aab39d8cdb1b2;hb=97718b12a58b8f401e38d907e3fc355927974fc2;hp=76265e73470111d3e1c592b8897d7fbe6dccc4bf;hpb=54b9e15f1e29c85e1174e103dc43ca6aaa59fbab;p=16.git diff --git a/src/inputest.c b/src/inputest.c index 76265e73..7818a8a3 100644 --- a/src/inputest.c +++ b/src/inputest.c @@ -23,19 +23,23 @@ input test */ #include "src/lib/16_in.h" - + void main(int argc, char *argv[]) -{ - ControlInfo control; - extern boolean Keyboard[NumCodes]; - IN_Startup(); - IN_Default(0,ctrl_Joystick); - while(!IN_qb(sc_Escape)) - { - IN_ReadControl(0,&control); -// printf("%u\n", Keyboard[sc_Escape]); +{ + player_t player[MaxPlayers]; + //extern struct inconfig inpu; - } - IN_Shutdown(); + IN_Startup(); + IN_Default(0,&player,ctrl_Joystick); + //while(!IN_KeyDown(sc_Escape)) + while(!IN_KeyDown(sc_Escape)) + { + 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]); }