]> 4ch.mooo.com Git - 16.git/commitdiff
testing input oops ^^; i mean this output
authorsparky4 <sparky4@cock.li>
Wed, 10 Aug 2016 15:32:55 +0000 (10:32 -0500)
committersparky4 <sparky4@cock.li>
Wed, 10 Aug 2016 15:32:55 +0000 (10:32 -0500)
src/lib/16_in.c

index b0740ff95574ccfe9013bc6f0ede3d51f4212e20..4a710308603b21be15bb509966f16c3173e9d6f9 100755 (executable)
@@ -856,6 +856,7 @@ register    KeyboardDef     *def;
                                mx = motion_Left,my = motion_Down;\r
                        else if (Keyboard[def->downright])\r
                                mx = motion_Right,my = motion_Down;*/\r
+//TODO: make this into a function that the joystick AND keyboard can use wwww\r
                        if(DIRECTIONIFELSE)//(player[pn].info.dir == 2)\r
                        {\r
                        if(!inpu.Keyboard[def->left] && !inpu.Keyboard[def->right]){\r
@@ -973,7 +974,7 @@ if(player[pn].d /*(inpu.Keyboard[def->up] || inpu.Keyboard[def->down] || inpu.Ke
        printf("q=%d ", player[pn].q);\r
        printf("cpee=%c ", dirchar(conpee));\r
        printf("pdir=%c d=%c dir=%c ", dirchar(player[pn].pdir), dirchar(player[pn].d), dirchar(player[pn].info.dir));\r
-       /*if(realdelta) */printf("dx=%d dy=%d           mx=%d my=%d", player[pn].info.x, player[pn].info.y, player[pn].info.xaxis, player[pn].info.yaxis);\r
+       /*if(realdelta) */printf("dx=%d dy=%d   mx=%d my=%d", player[pn].info.x, player[pn].info.y, player[pn].info.xaxis, player[pn].info.yaxis);\r
        ///*else if(!realdelta) */printf("%c%d %c%d %c%d %c%d", dirchar(0), inpu.Keyboard[def->up], dirchar(4), inpu.Keyboard[def->down], dirchar(1), inpu.Keyboard[def->left], dirchar(3), inpu.Keyboard[def->right]);\r
        printf("\n");\r
 }\r