]> 4ch.mooo.com Git - 16.git/blobdiff - src/lib/16_in.h
16_in improvements and added debugging stuff
[16.git] / src / lib / 16_in.h
index 44daca6d19583efdcde9f07881bae4765d887126..e39c400e29554414cb80e87465160af6670c6a1e 100755 (executable)
 //#define TESTCONTROLNOISY\r
 #endif\r
 \r
-extern word testkeyin,testcontrolnoisy;\r
+extern byte testkeyin,testcontrolnoisy,gfxtest;\r
+\r
+//if else for gfxtesting and direction\r
+#define DIRECTIONIFELSEGFXTEST (player[pn].d == 2 && gfxtest) || (player[pn].info.dir == 2 && !gfxtest)\r
+#define NDIRECTIONIFELSEGFXTEST (player[pn].d != 2 && gfxtest) || (player[pn].info.dir != 2 && !gfxtest)\r
 \r
 #define        KeyInt  9       // The keyboard ISR number\r
 \r
@@ -220,8 +224,9 @@ typedef     struct
        int triggery; //player's trigger box tile position on the viewable map\r
        int sheetsetx; //NOT USED YET! player sprite sheet set on the image x\r
        int sheetsety; //NOT USED YET! player sprite sheet set on the image y\r
-       byte d; //direction!! wwww\r
-       byte q; //loop variable\r
+       byte d;         //direction to render sprite!! wwww\r
+       byte q;         //loop variable for anumation and locking the playing to compleate the animation cycle to prevent issues with misalignment www\r
+       byte near pdir; //previous direction~\r
        word speed;             //player speed!\r
 //0000 planar_buf_t huge *data; //supposively the sprite sheet data\r
 //     planar_buf_t data; //supposively the sprite sheet data\r
@@ -285,8 +290,8 @@ extern void IN_SetKeyHook(void (*hook)());
 extern void IN_ClearKeysDown();\r
 //static void INL_AdjustCursor(CursorInfo *info,word buttons,int dx,int dy);\r
 extern void IN_ReadCursor(CursorInfo *info);\r
-extern void near IN_ReadControl(int playnum,player_t *player);\r
-extern void IN_SetControlType(word playnum,player_t *player,ControlType type);\r
+extern void near IN_ReadControl(int pn,player_t *player);\r
+extern void IN_SetControlType(word pn,player_t *player,ControlType type);\r
 #if DEMO0\r
 extern boolean IN_StartDemoRecord(word bufsize);\r
 extern void IN_StartDemoPlayback(byte /*__segment*/ *buffer,word bufsize);\r