X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Finputest.c;h=f336695a3b8afd1927aa39c3f26a92bb91851b40;hb=c52f1f24a6ccedba6b2d0c1c8911c363419e7f49;hp=d4a3d44c50f6150bda75fbf381b1a3a2c0773787;hpb=53d918625e7c5e1e9da827755449d6a901e6d302;p=16.git diff --git a/src/inputest.c b/src/inputest.c old mode 100644 new mode 100755 index d4a3d44c..f336695a --- a/src/inputest.c +++ b/src/inputest.c @@ -26,34 +26,21 @@ 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; - - if(IN_Startup(&in)) - { - 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); - } +{ + player_t player[MaxPlayers]; + //extern struct inconfig inpu; + testkeyin=1; + testcontrolnoisy=0; + 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_9)); + } + IN_Shutdown(); //printf("%u\n", in.Keyboard[sc_Escape]); + printf("%u\n", testkeyin); }