X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Flib%2F16_in.h;h=9f900aa5d5ac7b23be6bbaf4a993d3c2d5747eaa;hb=423b27dad372bb828fec78a9a0fb57d4ca7c8cba;hp=bbd2578cabdfb6f9bac5881745176a5d01220075;hpb=147100f749160c2fbb44d1fcf0e0d13597796a16;p=16.git diff --git a/src/lib/16_in.h b/src/lib/16_in.h index bbd2578c..9f900aa5 100755 --- a/src/lib/16_in.h +++ b/src/lib/16_in.h @@ -42,6 +42,13 @@ //#define TESTCONTROLNOISY #endif +extern byte testkeyin,testcontrolnoisy; + +//if else for gfxtesting and direction +//player[pn].d == 2 || +#define DIRECTIONIFELSEGFXTEST (player[pn].info.dir == 2) +//#define NDIRECTIONIFELSEGFXTEST (player[pn].d != 2 || player[pn].info.dir != 2) + #define KeyInt 9 // The keyboard ISR number // Stuff for the joystick @@ -218,8 +225,9 @@ typedef struct int triggery; //player's trigger box tile position on the viewable map int sheetsetx; //NOT USED YET! player sprite sheet set on the image x int sheetsety; //NOT USED YET! player sprite sheet set on the image y - byte d; //direction!! wwww - byte q; //loop variable + 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~ word speed; //player speed! //0000 planar_buf_t huge *data; //supposively the sprite sheet data // planar_buf_t data; //supposively the sprite sheet data @@ -283,8 +291,8 @@ extern void IN_SetKeyHook(void (*hook)()); extern void IN_ClearKeysDown(); //static void INL_AdjustCursor(CursorInfo *info,word buttons,int dx,int dy); extern void IN_ReadCursor(CursorInfo *info); -extern void near IN_ReadControl(int playnum,player_t *player); -extern void IN_SetControlType(word playnum,player_t *player,ControlType type); +extern void near IN_ReadControl(int pn,player_t *player); +extern void IN_SetControlType(word pn,player_t *player,ControlType type); #if DEMO0 extern boolean IN_StartDemoRecord(word bufsize); extern void IN_StartDemoPlayback(byte /*__segment*/ *buffer,word bufsize);