X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Flib%2F16_in.c;h=b2f31362237cef18f3baccae94ddf4c3745861f1;hb=aa8618bc6582b36d233980ddda9818b05771075d;hp=6b1addd7898bb832969faa27c781cd7cf8db2f10;hpb=c87a7091eb377c006fbfb56a6842f5a18f0ba444;p=16.git diff --git a/src/lib/16_in.c b/src/lib/16_in.c index 6b1addd7..b2f31362 100644 --- a/src/lib/16_in.c +++ b/src/lib/16_in.c @@ -852,15 +852,15 @@ register KeyboardDef *def; if(!inpu.Keyboard[def->left] && !inpu.Keyboard[def->right]){ - if((inpu.Keyboard[def->up] && player[playnum].info.dir == 2))// || player[playnum].info.dir == 0) + if((inpu.Keyboard[def->up] && !inpu.Keyboard[def->down] && player[playnum].info.dir == 2))// || player[playnum].info.dir == 0) my = motion_Up; - else if((inpu.Keyboard[def->down] && player[playnum].info.dir == 2))// || player[playnum].info.dir == 4) + if((inpu.Keyboard[def->down] && !inpu.Keyboard[def->up] && player[playnum].info.dir == 2))// || player[playnum].info.dir == 4) my = motion_Down; }else if(!inpu.Keyboard[def->up] && !inpu.Keyboard[def->down]){ - if((inpu.Keyboard[def->left] && player[playnum].info.dir == 2))// || player[playnum].info.dir == 1) + if((inpu.Keyboard[def->left] && !inpu.Keyboard[def->right] && player[playnum].info.dir == 2))// || player[playnum].info.dir == 1) mx = motion_Left; - else if((inpu.Keyboard[def->right] && player[playnum].info.dir == 2))// || player[playnum].info.dir == 3) + if((inpu.Keyboard[def->right] && !inpu.Keyboard[def->left] && player[playnum].info.dir == 2))// || player[playnum].info.dir == 3) mx = motion_Right; } if (inpu.Keyboard[def->button0]) @@ -1208,8 +1208,10 @@ void IN_ClearKey(byte code) } boolean IN_qb(byte kee) -{ - printf("%u\n", inpu.Keyboard[kee]); +{ + #ifdef TESTKEYIN + printf("%u\n", inpu.Keyboard[kee]); + #endif if(inpu.Keyboard[kee]==true) return 1; else return 0; }