X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Finputest.c;h=5df1f39f8acd33569de7ecf77655fff72387d990;hb=073bfdabe4ed1e8cac83ba123c222a9b2949f897;hp=15a405f5065ac61feb1864e3cb5897b89e1fe394;hpb=e3dca57bc80ceb1b0664c8e5a7c34acb665a5c73;p=16.git diff --git a/src/inputest.c b/src/inputest.c index 15a405f5..5df1f39f 100644 --- a/src/inputest.c +++ b/src/inputest.c @@ -26,16 +26,19 @@ void main(int argc, char *argv[]) -{ - CursorInfo 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)); + } + IN_Shutdown(); + //printf("%u\n", in.Keyboard[sc_Escape]); }