From e0f1d05925c30944c29b138fb87824a6596a009f Mon Sep 17 00:00:00 2001 From: sparky4 Date: Sat, 12 Mar 2016 23:49:49 -0600 Subject: [PATCH] pdir printf(%c%d %c%d %c%d %c%dn, dirchar(0), inpu.Keyboard[def->up], dirchar(4), inpu.Keyboard[def->down], dirchar(1), inpu.Keyboard[def->left], dirchar(3), inpu.Keyboard[def->right]); --- src/lib/16_in.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/lib/16_in.c b/src/lib/16_in.c index 6415a29c..038f8a26 100755 --- a/src/lib/16_in.c +++ b/src/lib/16_in.c @@ -856,7 +856,7 @@ register KeyboardDef *def; mx = motion_Right,my = motion_Down;*/ if(DIRECTIONIFELSEGFXTEST) { -// if(!inpu.Keyboard[def->left] && !inpu.Keyboard[def->right]){ + if(!inpu.Keyboard[def->left] && !inpu.Keyboard[def->right]){ if((inpu.Keyboard[def->up] && !inpu.Keyboard[def->down])) { my = motion_Up; @@ -865,7 +865,7 @@ register KeyboardDef *def; { my = motion_Down; } -// }else if(!inpu.Keyboard[def->up] && !inpu.Keyboard[def->down]){ + }else if(!inpu.Keyboard[def->up] && !inpu.Keyboard[def->down]){ if((inpu.Keyboard[def->left] && !inpu.Keyboard[def->right])) { mx = motion_Left; @@ -875,6 +875,7 @@ register KeyboardDef *def; mx = motion_Right; } } + } //input from player if (inpu.Keyboard[def->button0]) buttons += 1 << 0; -- 2.39.5