X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Flib%2F16_in.h;h=7962a78dc9dcec5d57e2c72cb0ae743df4228097;hb=fc090d29b950fe136302c31aef9b0b267467396f;hp=68f2d7211155d281985c47a99ea2d1e1247cb27c;hpb=4d65c704b6a652a66cbff653c192fcc8aca6ef30;p=16.git diff --git a/src/lib/16_in.h b/src/lib/16_in.h old mode 100644 new mode 100755 index 68f2d721..7962a78d --- a/src/lib/16_in.h +++ b/src/lib/16_in.h @@ -29,16 +29,21 @@ #include #include "src/lib/16_head.h" +#include "src/lib/timer.h" +#include "src/lib/bitmap.h" +#include "src/lib/planar.h" #ifdef __DEBUG__ //#define __DEBUG_InputMgr__ #endif #ifdef __DEBUG_InputMgr__ -#define TESTKEYIN -#define TESTCONTROLNOISY +//#define TESTKEYIN +//#define TESTCONTROLNOISY #endif +static word testkeyin,testcontrolnoisy; + #define KeyInt 9 // The keyboard ISR number // Stuff for the joystick @@ -174,14 +179,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 +198,7 @@ typedef struct { ; } KeyboardDef; typedef struct { - word joyMinX,joyMinY, + word near joyMinX,joyMinY, threshMinX,threshMinY, threshMaxX,threshMaxY, joyMaxX,joyMaxY, @@ -213,12 +218,17 @@ 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 - word q; //loop variable -// word d; //direction - //bitmap_t data; //supposively the sprite sheet data - int hp; //hitpoints of the player + 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 + word speed; //player speed! +//0000 planar_buf_t huge *data; //supposively the sprite sheet data +// planar_buf_t data; //supposively the sprite sheet data +////0000---- + bitmap_t huge *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; @@ -251,8 +261,6 @@ typedef struct static word DemoOffset,DemoSize; #endif -extern dword far* clockdw; - // Internal routines extern void interrupt INL_KeyService(); extern void Mouse(int x); @@ -277,7 +285,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);