X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Flib%2F16_in.h;h=6cdf2514c1905eba0e13dc280cf42435dde9f1f9;hb=c5dbea494cdfaf301cc12246fea54557c7bc4f21;hp=8e20760e71415f78f14098cf2af6fa518302939d;hpb=b653a5ce33432229e31e2e661a2283d7f277676c;p=16.git diff --git a/src/lib/16_in.h b/src/lib/16_in.h old mode 100644 new mode 100755 index 8e20760e..6cdf2514 --- a/src/lib/16_in.h +++ b/src/lib/16_in.h @@ -29,9 +29,10 @@ #include #include "src/lib/16_head.h" +#include "src/lib/bitmap.h" #ifdef __DEBUG__ -#define __DEBUG_InputMgr__ +//#define __DEBUG_InputMgr__ #endif #ifdef __DEBUG_InputMgr__ @@ -174,14 +175,14 @@ typedef enum { dir_South,//dir_Soutinest, } Direction; typedef struct { - boolean button0,button1,button2,button3; - int x,y; - Motion xaxis,yaxis; - Direction dir; + boolean near button0,button1,button2,button3; + int near x,y; + Motion near xaxis,yaxis; + Direction near dir; } CursorInfo; typedef struct { - ScanCode button0,button1, + ScanCode near button0,button1, //upleft, up, down, @@ -193,7 +194,7 @@ typedef struct { ; } KeyboardDef; typedef struct { - word joyMinX,joyMinY, + word near joyMinX,joyMinY, threshMinX,threshMinY, threshMaxX,threshMaxY, joyMaxX,joyMaxY, @@ -213,12 +214,14 @@ typedef struct int ty; //player tile position on the viewable map int triggerx; //player's trigger box tile position on the viewable map int triggery; //player's trigger box tile position on the viewable map - int setx; //NOT USED YET! player sprite sheet set on the image x - int sety; //NOT USED YET! player sprite sheet set on the image y + 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 + word d; //direction!! wwww word q; //loop variable -// word d; //direction - //bitmap_t data; //supposively the sprite sheet data - int hp; //hitpoints of the player + word speed; //player speed! + bitmap_t data; //supposively the sprite sheet data + sword hp; //hitpoints of the player + int persist_aniframe; /* gonna be increased to 1 before being used, so 0 is ok for default */ CursorInfo info; ControlType Controls; } player_t; @@ -277,7 +280,7 @@ 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 IN_ReadControl(int playnum,player_t *player); +extern void near IN_ReadControl(int playnum,player_t *player); extern void IN_SetControlType(word playnum,player_t *player,ControlType type); #if DEMO0 extern boolean IN_StartDemoRecord(word bufsize);