X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Finputest.c;h=7818a8a38fa6cbedf575ce9d227aab39d8cdb1b2;hb=1994e0d47edc486c81a3d6086574132870c644ed;hp=9693104657c8cae19a318d09d173bf53caf6db17;hpb=95fee4f41b0855e0a97af6db8a8fadf524bfbbe2;p=16.git diff --git a/src/inputest.c b/src/inputest.c index 96931046..7818a8a3 100644 --- a/src/inputest.c +++ b/src/inputest.c @@ -23,24 +23,23 @@ input test */ #include "src/lib/16_in.h" - + 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 struct inconfig inpu; - extern boolean Keyboard[NumCodes]; IN_Startup(); IN_Default(0,&player,ctrl_Joystick); -// IN_Default(0,ctrl_Joystick); - while(!IN_qb(sc_Escape)) - { - IN_ReadControl(0,&control); -// printf("%u\n", Keyboard[sc_Escape]); - - } - IN_Shutdown(); + //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]); }