X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Flib%2F16_in.h;h=9bcec25889cdab222c946b820430dff57e889794;hb=d799ef823a8b57ba6c783ed323430254083158be;hp=d2dfb54a2e1b02ee9985a4029179178a58990629;hpb=398c90d2a35006614f99b38ea112803015d97d33;p=16.git diff --git a/src/lib/16_in.h b/src/lib/16_in.h index d2dfb54a..9bcec258 100755 --- a/src/lib/16_in.h +++ b/src/lib/16_in.h @@ -30,22 +30,13 @@ #include #include "src/lib/16_head.h" #include "src/lib/16_timer.h" -#include "src/lib/16_sprit.h" -#include "src/lib/bitmap.h" //old format -#ifdef __WATCOMC__ +#ifdef __WATCOMC__ //borland C BCEXMM.EXE #include "src/lib/16_dbg.h" -#endif -#ifdef __DEBUG__ -//#define __DEBUG_InputMgr__ -#endif - -#ifdef __DEBUG_InputMgr__ -//#define TESTKEYIN -//#define TESTCONTROLNOISY +#include "src/lib/16_spri.h" +#include "src/lib/16_enti.h" +//#include "src/lib/bitmap.h" //old format #endif -extern boolean testkeyin,testcontrolnoisy; - //if else for gfxtesting and direction //player[pn].d == 2 || //player[pn].d != 2 || @@ -59,13 +50,13 @@ extern boolean testkeyin,testcontrolnoisy; #define JoyScaleShift 8 #define MaxJoyValue 5000 -#define MaxPlayers 4 +#define MaxPlayers 2//futre plans for multiple playable charaters and being able to alternate #define MaxKbds 2 #define MaxJoys 2 #define MaxPads 2 #define NumCodes 128 -typedef byte ScanCode; +//typedef byte ScanCode; #define sc_None 0 #define sc_Bad 0xff #define sc_Return 0x1c @@ -164,7 +155,8 @@ typedef enum { demo_Off,demo_Record,demo_Playback,demo_PlayDone } Demo; #endif -typedef enum { +//moved to 16_tdef.h +/*typedef enum { //ctrl_None, // MDM (GAMERS EDGE) - added ctrl_Keyboard, ctrl_Keyboard1 = ctrl_Keyboard,ctrl_Keyboard2, @@ -225,19 +217,22 @@ 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! word spt; //speed per tile -//0000 planar_buf_t huge *data; //supposively the sprite sheet data -// planar_buf_t data; //supposively the sprite sheet data -////0000---- - struct sprite *spri; //supposively the sprite sheet data - bitmap_t *data; //supposively the sprite sheet data//old format +#ifdef __WATCOMC__ + struct sprite *spri; //supposively the sprite sheet data + memptr gr; + entity_t *ent; +#endif + bitmap_t *data; //supposively the sprite sheet data//old format + bitmap_t bmp; sword hp; //hitpoints of the player - int persist_aniframe; /* gonna be increased to 1 before being used, so 0 is ok for default */ + int persist_aniframe; // gonna be increased to 1 before being used, so 0 is ok for default CursorInfo info; ControlType Controls; -} player_t; +//newer vars + int dx, dy, delta; //TODO: what is this? ^^ +} player_t;*/ /* ============================================================================= @@ -289,7 +284,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 near IN_ReadControl(int pn,player_t *player); +extern void near IN_ReadControl(word pn, player_t *player); extern void IN_SetControlType(word pn,player_t *player,ControlType type); #if DEMO0 extern boolean IN_StartDemoRecord(word bufsize); @@ -307,6 +302,5 @@ extern boolean IN_UserInput(dword delay,boolean clear); extern boolean IN_KeyDown(byte code); extern void IN_ClearKey(byte code); extern boolean IN_qb(byte kee); -void IN_initplayer(player_t *player, word pn); #endif