X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Finputest.c;h=81f558767c97398a73f70266e3adff944594ef03;hb=d7ea637a201c3ca8847111d846b75f0ae3dc3e34;hp=9693104657c8cae19a318d09d173bf53caf6db17;hpb=95fee4f41b0855e0a97af6db8a8fadf524bfbbe2;p=16.git diff --git a/src/inputest.c b/src/inputest.c old mode 100644 new mode 100755 index 96931046..81f55876 --- a/src/inputest.c +++ b/src/inputest.c @@ -27,20 +27,20 @@ void main(int argc, char *argv[]) { -// CursorInfo control; - player_t player[MaxPlayers]; - hwconfig hw; - player.KbdDefs = {0x1d,0x38,0x47,0x48,0x49,0x4b,0x4d,0x4f,0x50,0x51}; - - extern boolean Keyboard[NumCodes]; - IN_Startup(); + player_t player[MaxPlayers]; + //extern struct inconfig inpu; + testkeyin=1; + testcontrolnoisy=1; + IN_Startup(); IN_Default(0,&player,ctrl_Joystick); -// IN_Default(0,ctrl_Joystick); - while(!IN_qb(sc_Escape)) + //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)); + printf("%u\n", IN_qb(sc_9)); } IN_Shutdown(); + //printf("%u\n", in.Keyboard[sc_Escape]); + printf("%u\n", testkeyin); }