X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Finputest.c;h=7818a8a38fa6cbedf575ce9d227aab39d8cdb1b2;hb=88f0f8107c33801edc3b344230fe74c1277f5cbf;hp=d4a3d44c50f6150bda75fbf381b1a3a2c0773787;hpb=53d918625e7c5e1e9da827755449d6a901e6d302;p=16.git diff --git a/src/inputest.c b/src/inputest.c index d4a3d44c..7818a8a3 100644 --- a/src/inputest.c +++ b/src/inputest.c @@ -23,37 +23,23 @@ input test */ #include "src/lib/16_in.h" - + void main(int argc, char *argv[]) { player_t player[MaxPlayers]; - inconfig in; - //word i=0; - - in.KbdDefs[0].button0 = 0x1d; - in.KbdDefs[0].button1 = 0x38; - //in.KbdDefs[0].upleft = 0x47; - in.KbdDefs[0].up = 0x48; - //in.KbdDefs[0].upright = 0x49; - in.KbdDefs[0].left = 0x4b; - in.KbdDefs[0].right = 0x4d; - //in.KbdDefs[0].downleft = 0x4f; - in.KbdDefs[0].down = 0x50; - //in.KbdDefs[0].downright = 0x51; + //extern struct inconfig inpu; - if(IN_Startup(&in)) + IN_Startup(); + IN_Default(0,&player,ctrl_Joystick); + //while(!IN_KeyDown(sc_Escape)) + while(!IN_KeyDown(sc_Escape)) { - IN_Default(0,&player,ctrl_Joystick, &in); - while(!in.Keyboard[sc_Escape]) - { - IN_ReadControl(0,&player, &in); - //printf("%u\n", in.Keyboard[sc_Escape]); - //printf("i=%u\n", i); - printf(""); - //i++; - } - IN_Shutdown(&in); + 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]); }