X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Finputest.c;h=5df1f39f8acd33569de7ecf77655fff72387d990;hb=521e7a1f4672eabf05a768328448546cc00dc060;hp=15a1b3a5eb30565f2b0d88a9ee332051f89e28f7;hpb=6339995f5499b33983d4f5e5038ae68ff0ecd2e3;p=16.git diff --git a/src/inputest.c b/src/inputest.c index 15a1b3a5..5df1f39f 100644 --- a/src/inputest.c +++ b/src/inputest.c @@ -26,10 +26,19 @@ void main(int argc, char *argv[]) -{ - ControlInfo control; - IN_Startup(); - IN_Default(0,ctrl_Keyboard); - IN_ReadControl(0,&control); - IN_Shutdown(); +{ + player_t player[MaxPlayers]; + //extern struct inconfig inpu; + + 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]); }