VGMSNDOBJ = vgmSnd.$(OBJ) 16_snd.$(OBJ)
#OLDLIBOBJS=bitmap.$(OBJ) 16render.$(OBJ)
GFXLIBOBJS = 16_vl.$(OBJ) 16_vlpal.$(OBJ) 16text.$(OBJ) bakapee.$(OBJ) scroll16.$(OBJ) 16_vrs.$(OBJ) 16_spri.$(OBJ) $(OLDLIBOBJS)
-16LIBOBJS = 16_mm.$(OBJ) 16_pm.$(OBJ) 16_ca.$(OBJ) 16_tail.$(OBJ) 16_head.$(OBJ) 16_in.$(OBJ) 16_enti.$(OBJ) 16_dbg.$(OBJ) kitten.$(OBJ) 16_hc.$(OBJ) 16_wcpu.$(OBJ) 16_timer.$(OBJ) jsmn.$(OBJ) 16_map.$(OBJ) 16text.$(OBJ)
+16LIBNOINOBJS = 16_mm.$(OBJ) 16_pm.$(OBJ) 16_ca.$(OBJ) 16_tail.$(OBJ) 16_head.$(OBJ) 16_enti.$(OBJ) 16_dbg.$(OBJ) kitten.$(OBJ) 16_hc.$(OBJ) 16_wcpu.$(OBJ) 16_timer.$(OBJ) jsmn.$(OBJ) 16_map.$(OBJ) 16text.$(OBJ)
+16LIBOBJS = $(16LIBNOINOBJS) 16_in.$(OBJ)
DOSLIBOBJ = adlib.$(OBJ) 8254.$(OBJ) 8259.$(OBJ) dos.$(OBJ) cpu.$(OBJ)
!ifeq DEBUGSERIAL 1
DOSLIBOBJ += 8250.$(OBJ)
zcroll.exe &
inputest.exe &
vrstest.exe &
- maptest.exe
+ maptest.exe &
+ inntest.exe
TESTEXEC2 = &
pcxtest.exe &
scroll.exe &
#fonttes0.exe: fonttes0.$(OBJ) $(16LIB)
fontgfx.exe: fontgfx.$(OBJ) gfx.lib $(DOSLIB)
inputest.exe: inputest.$(OBJ) $(16LIB) $(DOSLIB) gfx.lib
+inntest.exe: inntest.$(OBJ) $(16LIBNOINOBJS) 16_in_1.$(OBJ)
#sountest.exe: sountest.$(OBJ) $(16LIB)
pcxtest.exe: pcxtest.$(OBJ) gfx.lib $(DOSLIB) $(16LIB)
vrstest.exe: vrstest.$(OBJ) $(16LIB) gfx.lib $(DOSLIB)
#fonttes0.$(OBJ): $(SRC)/fonttes0.c
fontgfx.$(OBJ):$(SRC)/fontgfx.c
inputest.$(OBJ):$(SRC)/inputest.c
+inntest.$(OBJ):$(SRC)/inntest.c
#sountest.$(OBJ): $(SRC)/sountest.c
#miditest.$(OBJ): $(SRC)/miditest.c
#testemm.$(OBJ):$(SRC)/testemm.c
16_map.$(OBJ):$(SRCLIB)/16_map.c $(SRCLIB)/16_map.h
16_timer.$(OBJ):$(SRCLIB)/16_timer.c $(SRCLIB)/16_timer.h
16_in.$(OBJ): $(SRCLIB)/16_in.c $(SRCLIB)/16_in.h
+16_in_1.$(OBJ): $(SRCLIB)/16_in_1.c $(SRCLIB)/16_in_1.h
16_rf.$(OBJ): $(SRCLIB)/16_rf.c $(SRCLIB)/16_rf.h
16_mm.$(OBJ): $(SRCLIB)/16_mm.c $(SRCLIB)/16_mm.h
16_pm.$(OBJ): $(SRCLIB)/16_pm.c $(SRCLIB)/16_pm.h
/*\r
input test\r
*/\r
-#include "src/lib/16_in_.h"\r
+#include "src/lib/16_in_1.h"\r
\r
void probe_dos(){}\r
void cpu_probe(){}\r
IN_Startup(&gvar);\r
//IN_Default(0,&gvar.player,ctrl_Joystick1);\r
//IN_SetControlType(0,&gvar.player,ctrl_Joystick1);\r
- IN_Default(0,&gvar.player,ctrl_Keyboard1, &gvar);\r
- IN_SetControlType(0,&gvar.player,ctrl_Keyboard1);\r
+ IN_Default(0,&gvar.player[0],ctrl_Keyboard1, &gvar);\r
+ IN_SetControlType(&gvar.player[0],ctrl_Keyboard1);\r
\r
gvar.player[0].enti.q=1;\r
gvar.player[0].enti.d=2;\r
while(!IN_KeyDown(sc_Escape, &gvar))\r
{\r
//0000 shinkutxt(&gvar);\r
- IN_ReadControl(0, &gvar.player, &gvar);\r
+ IN_ReadControl(&gvar.player[0], &gvar);\r
switch(gvar.player[0].enti.d)\r
{\r
//right movement\r
\r
=============================================================================\r
*/\r
-struct inconfig\r
+/*struct inconfig\r
{\r
boolean MousePresent;\r
boolean JoysPresent[MaxJoys];\r
\r
KeyboardDef KbdDefs[MaxKbds];\r
JoystickDef JoyDefs[MaxJoys];\r
-} inpu;\r
+} inpu;*/\r
\r
//inpu.KbdDefs = {0x1d,0x38,/*0x47,*/0x48,/*0x49,*/0x4b,0x4d,/*0x4f,*/0x50/*,0x51*/};\r
\r
extern "C" {\r
#endif\r
\r
-static struct instat {\r
+/*static struct instat {\r
boolean IN_Started;\r
boolean CapsLock;\r
ScanCode CurCode,LastCode;\r
-} inst;\r
+} inst;*/\r
\r
static byte far ASCIINames[] = // Unshifted ASCII for scan codes\r
{\r
//\r
///////////////////////////////////////////////////////////////////////////\r
/*static */void interrupt\r
-INL_KeyService(void)\r
+INL_KeyService(void)//!\r
{\r
static boolean special;\r
byte k,c,\r
// joystick (from +/-127)\r
//\r
///////////////////////////////////////////////////////////////////////////\r
-void INL_GetJoyDelta(word joy,int *dx,int *dy/*,boolean adaptive*/)\r
+void INL_GetJoyDelta(word joy,int *dx,int *dy/*,boolean adaptive*/)//!\r
{\r
word x,y;\r
word TimeCount = *clockw;\r
//\r
///////////////////////////////////////////////////////////////////////////\r
void\r
-IN_SetupJoy(word joy,word minx,word maxx,word miny,word maxy)\r
+IN_SetupJoy(word joy,word minx,word maxx,word miny,word maxy)//!\r
{\r
word d,r;\r
JoystickDef *def;\r
//\r
///////////////////////////////////////////////////////////////////////////\r
static void\r
-INL_ShutJoy(word joy)\r
+INL_ShutJoy(word joy)//!\r
{\r
inpu.JoysPresent[joy] = false;\r
}\r
//\r
///////////////////////////////////////////////////////////////////////////\r
void\r
-IN_Startup()\r
+IN_Startup()//!\r
{\r
boolean checkjoys,checkmouse;\r
word i;\r
//\r
///////////////////////////////////////////////////////////////////////////\r
void\r
-IN_Default(boolean gotit,player_t *player,ControlType nt)\r
+IN_Default(boolean gotit,player_t *player,ControlType nt)//!\r
{\r
int i;\r
if\r
//\r
///////////////////////////////////////////////////////////////////////////\r
void\r
-IN_Shutdown(void)\r
+IN_Shutdown(void)//!\r
{\r
word i;\r
\r
//\r
///////////////////////////////////////////////////////////////////////////\r
void\r
-IN_ClearKeysDown(void)\r
+IN_ClearKeysDown(void)//!\r
{\r
//int i;\r
\r
//\r
///////////////////////////////////////////////////////////////////////////\r
void\r
-IN_ReadCursor(CursorInfo *info)\r
+IN_ReadCursor(CursorInfo *info)//!\r
{\r
word i,\r
buttons;\r
//\r
///////////////////////////////////////////////////////////////////////////\r
void\r
-IN_ReadControl(player_t *player)\r
+IN_ReadControl(player_t *player)//!\r
{\r
boolean realdelta;\r
#if DEMO0\r
//\r
///////////////////////////////////////////////////////////////////////////\r
ScanCode\r
-IN_WaitForKey(void)\r
+IN_WaitForKey(void)//!\r
{\r
ScanCode result;\r
\r
//\r
///////////////////////////////////////////////////////////////////////////\r
char\r
-IN_WaitForASCII(void)\r
+IN_WaitForASCII(void)//!\r
{\r
char result;\r
\r
\r
boolean btnstate[8];\r
\r
-void IN_StartAck(void)\r
+void IN_StartAck(void)//!\r
{\r
unsigned i,buttons;\r
\r
}\r
\r
\r
-boolean IN_CheckAck (void)\r
+boolean IN_CheckAck (void)//!\r
{\r
unsigned i,buttons;\r
\r
//\r
///////////////////////////////////////////////////////////////////////////\r
boolean\r
-IN_IsUserInput()\r
+IN_IsUserInput()//!\r
{\r
boolean result;\r
word i;\r
===================\r
*/\r
\r
-byte IN_MouseButtons (void)\r
+byte IN_MouseButtons (void)//!\r
{\r
union REGS CPURegs;\r
if (inpu.MousePresent)\r
return joybits;\r
}\r
\r
-boolean IN_KeyDown(byte code)\r
+boolean IN_KeyDown(byte code)//!\r
{\r
#ifdef __DEBUG_InputMgr__\r
if(!dbg_nointest)\r
#endif\r
}\r
\r
-void IN_ClearKey(byte code)\r
+void IN_ClearKey(byte code)//!\r
{\r
inpu.Keyboard[code] = false;\r
if(code == inpu.LastScan)\r
inpu.LastScan = sc_None;\r
}\r
\r
-boolean IN_qb(byte kee)\r
+boolean IN_qb(byte kee)//!\r
{\r
#ifdef __DEBUG_InputMgr__\r
if(dbg_testkeyin) printf("%u\n", inpu.Keyboard[kee]);\r
else return 0;\r
}\r
\r
-ScanCode IN_GetLastScan()\r
+ScanCode IN_GetLastScan()//!\r
{\r
return inpu.LastScan;\r
}\r
\r
-ScanCode IN_GetCurCode()\r
+ScanCode IN_GetCurCode()//!\r
{\r
return inst.CurCode;\r
}\r
#include "src/lib/16_head.h"\r
#include "src/lib/16_timer.h"\r
#include "src/lib/16_dbg.h"\r
-#ifdef __WATCOMC__ //borland C BCEXMM.EXE\r
+/*#ifdef __WATCOMC__ //borland C BCEXMM.EXE\r
#include "src/lib/16_spri.h"\r
#include "src/lib/16_enti.h"\r
-#endif\r
+#endif*/\r
\r
#define KeyInt 9 // The keyboard ISR number\r
\r
#endif\r
\r
// Internal routines\r
-extern void IN_Startup(void),IN_Shutdown(void),\r
- IN_Default(boolean gotit,player_t *player,ControlType nt),\r
+extern void IN_Startup(global_game_variables_t *gvar),IN_Shutdown(global_game_variables_t *gvar),\r
+ IN_Default(boolean gotit,player_t *player,ControlType nt, global_game_variables_t *gvar),\r
IN_SetKeyHook(void (*)()),\r
IN_ClearKeysDown(void),\r
IN_ReadCursor(CursorInfo *),\r
- IN_ReadControl(player_t *player),\r
+ IN_ReadControl(player_t *player, global_game_variables_t *gvar),\r
IN_SetControlType(player_t *player,ControlType type),\r
IN_GetJoyAbs(word joy,word *xp,word *yp),\r
IN_SetupJoy(word joy,word minx,word maxx,\r
void IN_FreeDemoBuffer(void);\r
#endif\r
\r
-boolean IN_KeyDown(byte code),\r
- IN_qb(byte kee);\r
+boolean IN_KeyDown(byte code, global_game_variables_t *gvar),\r
+ IN_qb(byte kee, global_game_variables_t *gvar);\r
void IN_ClearKey(byte code),\r
IN_KbdLED();\r
ScanCode IN_GetLastScan(),\r
joyMultXH,joyMultYH;\r
} JoystickDef;\r
\r
-/*typedef struct// inconfig\r
+typedef struct// inconfig\r
{\r
boolean IN_Started;\r
boolean CapsLock;\r
\r
KeyboardDef KbdDefs[MaxKbds];\r
JoystickDef JoyDefs[MaxJoys];\r
-} in_info_t;*/\r
+} in_info_t;\r
\r
//==========================================================================\r
\r
loghandle_t handle; //handles for file logging\r
kurokku_t kurokku; //clock struct\r
mminfo_t mm; mminfotype mmi; // mm stuff\r
-//++++ in_info_t in; // 16_in info\r
+ in_info_t in; // 16_in info\r
player_t player[MaxPlayers]; // player vars\r
map_view_t mv[4];\r
} global_game_variables_t;\r