X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Flib%2F16_in.h;h=0990a55089d68ccdcf3b3cd786c7d0ab991e324c;hb=4710ca84cd057d4e144400ec68aff6e25a5041d6;hp=ad625ed1ee80f19ec8629e71e0916a3f959b35ed;hpb=3401a0bddcdce075f8cda8b6392c541050fd36e2;p=16.git diff --git a/src/lib/16_in.h b/src/lib/16_in.h index ad625ed1..0990a550 100755 --- a/src/lib/16_in.h +++ b/src/lib/16_in.h @@ -29,7 +29,7 @@ #include #include "src/lib/16_head.h" -#include "src/lib/timer.h" +#include "src/lib/16_timer.h" #include "src/lib/bitmap.h" #include "src/lib/planar.h" @@ -42,11 +42,13 @@ //#define TESTCONTROLNOISY #endif -extern byte testkeyin,testcontrolnoisy,gfxtest; +extern boolean testkeyin,testcontrolnoisy,testctrltype; //if else for gfxtesting and direction -#define DIRECTIONIFELSEGFXTEST (player[pn].d == 2 || player[pn].info.dir == 2) -#define NDIRECTIONIFELSEGFXTEST (player[pn].d != 2 || player[pn].info.dir != 2) +//player[pn].d == 2 || +//player[pn].d != 2 || +#define DIRECTIONIFELSE (player[pn].info.dir == 2) +//#define NDIRECTIONIFELSE (player[pn].info.dir != 2) #define KeyInt 9 // The keyboard ISR number @@ -167,8 +169,6 @@ typedef enum { ctrl_Joystick, ctrl_Joystick1 = ctrl_Joystick,ctrl_Joystick2, ctrl_Mouse, - ctrl_Joypad, - ctrl_Joypad1 = ctrl_Joypad,ctrl_Joypad2 } ControlType; typedef enum { motion_Left = -1,motion_Up = -1, @@ -209,10 +209,6 @@ typedef struct { joyMultXL,joyMultYL, joyMultXH,joyMultYH; } JoystickDef; -typedef struct -{ - boolean w; -} JoypadDef; typedef struct { @@ -227,6 +223,7 @@ typedef struct byte d; //direction to render sprite!! wwww byte q; //loop variable for anumation and locking the playing to compleate the animation cycle to prevent issues with misalignment www byte near pdir; //previous direction~ + //byte near kd[2]; //array of arrow key pressed word speed; //player speed! //0000 planar_buf_t huge *data; //supposively the sprite sheet data // planar_buf_t data; //supposively the sprite sheet data @@ -249,7 +246,6 @@ typedef struct { boolean MousePresent; boolean JoysPresent[MaxJoys]; - boolean JoyPadPresent[MaxPads]; boolean Keyboard[NumCodes]; boolean Paused; char LastASCII; @@ -257,7 +253,6 @@ typedef struct KeyboardDef KbdDefs[MaxKbds]; JoystickDef JoyDefs[MaxJoys]; - JoypadDef JoypadDefs[MaxPads]; } inpu;*/ #ifdef DEMO0