]> 4ch.mooo.com Git - 16.git/blobdiff - src/lib/16_in.c
updated copyleft and need to test and fix newer version of open watcom
[16.git] / src / lib / 16_in.c
index ca5cf27729eb002c5360bc445e87ca31009628c2..3c6a2465c94912b26444bed3cba9a18cbf91c68a 100755 (executable)
@@ -1,5 +1,5 @@
 /* Project 16 Source Code~\r
- * Copyright (C) 2012-2020 sparky4 & pngwen & andrius4669 & joncampbell123 & yakui-lover\r
+ * Copyright (C) 2012-2022 sparky4 & pngwen & andrius4669 & joncampbell123 & yakui-lover\r
  *\r
  * This file is part of Project 16.\r
  *\r
@@ -377,9 +377,9 @@ done:
 void INL_GetJoyDelta(word joy,int *dx,int *dy/*,boolean adaptive*/, global_game_variables_t *gvar)\r
 {\r
        word            x,y;\r
-//00   word TimeCount = *clockw;\r
+//00++++       word TimeCount = *clockw;\r
        JoystickDef     *def;\r
-//00static     word    lasttime;\r
+//00++++static word    lasttime;\r
 \r
        IN_GetJoyAbs(joy,&x,&y);\r
        def = gvar->in.JoyDefs + joy;\r
@@ -440,7 +440,7 @@ void INL_GetJoyDelta(word joy,int *dx,int *dy/*,boolean adaptive*/, global_game_
 //                     *dy *= time;\r
 //             }\r
 //     }\r
-//00   lasttime = TimeCount;\r
+//00++++       lasttime = TimeCount;\r
 }\r
 \r
 ///////////////////////////////////////////////////////////////////////////\r
@@ -470,15 +470,15 @@ register  word    result;
 word\r
 IN_GetJoyButtonsDB(word joy)\r
 {\r
-//00   word TimeCount = *clockw;\r
-//00   word    lasttime;\r
+//00++++       word TimeCount = *clockw;\r
+//00++++       word    lasttime;\r
        word            result1,result2;\r
 \r
        do\r
        {\r
                result1 = INL_GetJoyButtons(joy);\r
-//00           lasttime = TimeCount;\r
-//00           while(TimeCount == lasttime)\r
+//00++++               lasttime = TimeCount;\r
+//00++++               while(TimeCount == lasttime)\r
                        //;\r
                result2 = INL_GetJoyButtons(joy);\r
        } while(result1 != result2);\r
@@ -1298,9 +1298,9 @@ byte      IN_MouseButtons (global_game_variables_t *gvar)
 ===================\r
 */\r
 \r
-byte   IN_JoyButtons (void)\r
+word   IN_JoyButtons (void)\r
 {\r
-       byte joybits;\r
+       word joybits;\r
 \r
        joybits = inportb(0x201);       // Get all the joystick buttons\r
        joybits >>= 4;                          // only the high bits are useful\r