X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Finputest.c;h=94443bbf518ef273c8ebc3486d99d13c1a82f1a0;hb=0cecd0a0c1e8152c8fdad3d910b4dfb64a3d6cad;hp=8d94fcd30070efda16a45a248b184622c5d4b456;hpb=539c09c7039c5420ed1911c54677c86c370a8b33;p=16.git diff --git a/src/inputest.c b/src/inputest.c old mode 100644 new mode 100755 index 8d94fcd3..94443bbf --- a/src/inputest.c +++ b/src/inputest.c @@ -27,15 +27,21 @@ void main(int argc, char *argv[]) { - ControlInfo control; - extern boolean Keyboard[NumCodes]; + player_t player[MaxPlayers]; + //extern struct inconfig inpu; + testkeyin=1; + testcontrolnoisy=0; IN_Startup(); - IN_Default(0,ctrl_Keyboard); - while(!IN_qb(sc_Escape)) + IN_Default(0,&player,ctrl_Joystick); + //while(!IN_KeyDown(sc_Escape)) + while(!IN_KeyDown(sc_Escape)) { - IN_ReadControl(0,&control); -// printf("%u\n", Keyboard[sc_Escape]); - + IN_ReadControl(0,&player); + //printf("%u\n", IN_KeyDown(sc_Escape)); + if(IN_qb(sc_9)>0) printf("IN_qb(sc_9)=%u\n", IN_qb(sc_9)); } IN_Shutdown(); + //printf("%u\n", in.Keyboard[sc_Escape]); + printf("version %s\n", VERSION); + printf("%u\n", testkeyin); }