X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Finputest.c;h=7818a8a38fa6cbedf575ce9d227aab39d8cdb1b2;hb=1994e0d47edc486c81a3d6086574132870c644ed;hp=8d94fcd30070efda16a45a248b184622c5d4b456;hpb=539c09c7039c5420ed1911c54677c86c370a8b33;p=16.git diff --git a/src/inputest.c b/src/inputest.c index 8d94fcd3..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_Keyboard); - 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]); }