]> 4ch.mooo.com Git - 16.git/blobdiff - src/lib/16_in_1.c
__seguse.txt added to show _seg usage also OpenVGMFile needs to be ported to 16_snd...
[16.git] / src / lib / 16_in_1.c
index e7ed19edafbe81620eadfbd47dac839280a916a9..84e1266e050a6ad9e618bd026044ba6b6ede5f2c 100755 (executable)
@@ -51,7 +51,7 @@ static word far* clockw= (word far*) 0x046C; /* 18.2hz clock */
 \r
 =============================================================================\r
 */\r
-struct inconfig\r
+/*struct inconfig\r
 {\r
        boolean         MousePresent;\r
        boolean         JoysPresent[MaxJoys];\r
@@ -62,7 +62,7 @@ struct inconfig
 \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
@@ -78,11 +78,11 @@ struct inconfig
 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
@@ -168,7 +168,7 @@ static      char                    *ParmStringsIN[] = {"nojoys","nomouse",nil};
 //\r
 ///////////////////////////////////////////////////////////////////////////\r
 /*static */void interrupt\r
-INL_KeyService(void)\r
+INL_KeyService(void)//!\r
 {\r
 static boolean special;\r
                byte    k,c,\r
@@ -376,7 +376,7 @@ done:
 //             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
@@ -578,7 +578,7 @@ INL_SetJoyScale(word joy)
 //\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
@@ -634,7 +634,7 @@ INL_StartJoy(word joy)
 //\r
 ///////////////////////////////////////////////////////////////////////////\r
 static void\r
-INL_ShutJoy(word joy)\r
+INL_ShutJoy(word joy)//!\r
 {\r
        inpu.JoysPresent[joy] = false;\r
 }\r
@@ -647,7 +647,7 @@ INL_ShutJoy(word joy)
 //\r
 ///////////////////////////////////////////////////////////////////////////\r
 void\r
-IN_Startup()\r
+IN_Startup()//!\r
 {\r
        boolean checkjoys,checkmouse;\r
        word    i;\r
@@ -686,7 +686,7 @@ IN_Startup()
 //\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
@@ -718,7 +718,7 @@ IN_Default(boolean gotit,player_t *player,ControlType nt)
 //\r
 ///////////////////////////////////////////////////////////////////////////\r
 void\r
-IN_Shutdown(void)\r
+IN_Shutdown(void)//!\r
 {\r
        word    i;\r
 \r
@@ -751,7 +751,7 @@ IN_SetKeyHook(void (*hook)())
 //\r
 ///////////////////////////////////////////////////////////////////////////\r
 void\r
-IN_ClearKeysDown(void)\r
+IN_ClearKeysDown(void)//!\r
 {\r
        //int   i;\r
 \r
@@ -784,7 +784,7 @@ INL_AdjustCursor(CursorInfo *info,word buttons,int dx,int dy)
 //\r
 ///////////////////////////////////////////////////////////////////////////\r
 void\r
-IN_ReadCursor(CursorInfo *info)\r
+IN_ReadCursor(CursorInfo *info)//!\r
 {\r
        word    i,\r
                        buttons;\r
@@ -824,7 +824,7 @@ IN_ReadCursor(CursorInfo *info)
 //\r
 ///////////////////////////////////////////////////////////////////////////\r
 void\r
-IN_ReadControl(player_t *player)\r
+IN_ReadControl(player_t *player)//!\r
 {\r
                        boolean         realdelta;\r
 #if DEMO0\r
@@ -1108,7 +1108,7 @@ IN_GetScanName(ScanCode scan)
 //\r
 ///////////////////////////////////////////////////////////////////////////\r
 ScanCode\r
-IN_WaitForKey(void)\r
+IN_WaitForKey(void)//!\r
 {\r
        ScanCode        result;\r
 \r
@@ -1125,7 +1125,7 @@ IN_WaitForKey(void)
 //\r
 ///////////////////////////////////////////////////////////////////////////\r
 char\r
-IN_WaitForASCII(void)\r
+IN_WaitForASCII(void)//!\r
 {\r
        char            result;\r
 \r
@@ -1144,7 +1144,7 @@ IN_WaitForASCII(void)
 \r
 boolean        btnstate[8];\r
 \r
-void IN_StartAck(void)\r
+void IN_StartAck(void)//!\r
 {\r
        unsigned        i,buttons;\r
 \r
@@ -1164,7 +1164,7 @@ void IN_StartAck(void)
 }\r
 \r
 \r
-boolean IN_CheckAck (void)\r
+boolean IN_CheckAck (void)//!\r
 {\r
        unsigned        i,buttons;\r
 \r
@@ -1206,7 +1206,7 @@ void IN_Ack (void)
 //\r
 ///////////////////////////////////////////////////////////////////////////\r
 boolean\r
-IN_IsUserInput()\r
+IN_IsUserInput()//!\r
 {\r
        boolean result;\r
        word    i;\r
@@ -1258,7 +1258,7 @@ boolean IN_UserInput(word delay)
 ===================\r
 */\r
 \r
-byte   IN_MouseButtons (void)\r
+byte   IN_MouseButtons (void)//!\r
 {\r
        union REGS CPURegs;\r
        if (inpu.MousePresent)\r
@@ -1290,7 +1290,7 @@ byte      IN_JoyButtons (void)
        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
@@ -1305,14 +1305,14 @@ boolean IN_KeyDown(byte code)
 #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
@@ -1321,12 +1321,12 @@ boolean IN_qb(byte kee)
        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