From: sparky4 Date: Thu, 23 Sep 2021 23:01:14 +0000 (-0500) Subject: update repo X-Git-Url: http://4ch.mooo.com/gitweb/?p=16.git;a=commitdiff_plain;h=1bebdeb97d70c11273a69674eb736ab274802c0a update repo --- diff --git a/src/inputest.c b/src/inputest.c index a27c2dd5..7f3b8287 100755 --- a/src/inputest.c +++ b/src/inputest.c @@ -45,7 +45,7 @@ main(int argc, char *argv[]) ctrl_Keyboard1 #endif #if defined(INPUTEST_JOYSTICKPADTEST) && !defined(INPUTEST_MOUSETEST) - ctrl_Joystick1 + ctrl_Joystick2 #endif #if !defined(INPUTEST_JOYSTICKPADTEST) && defined(INPUTEST_MOUSETEST) ctrl_Mouse diff --git a/src/lib/16_in.c b/src/lib/16_in.c index bc91ce30..834e3b37 100755 --- a/src/lib/16_in.c +++ b/src/lib/16_in.c @@ -377,9 +377,9 @@ done: void INL_GetJoyDelta(word joy,int *dx,int *dy/*,boolean adaptive*/, global_game_variables_t *gvar) { word x,y; -//00 word TimeCount = *clockw; +//00++++ word TimeCount = *clockw; JoystickDef *def; -//00static word lasttime; +//00++++static word lasttime; IN_GetJoyAbs(joy,&x,&y); def = gvar->in.JoyDefs + joy; @@ -440,7 +440,7 @@ void INL_GetJoyDelta(word joy,int *dx,int *dy/*,boolean adaptive*/, global_game_ // *dy *= time; // } // } -//00 lasttime = TimeCount; +//00++++ lasttime = TimeCount; } /////////////////////////////////////////////////////////////////////////// @@ -470,15 +470,15 @@ register word result; word IN_GetJoyButtonsDB(word joy) { -//00 word TimeCount = *clockw; -//00 word lasttime; +//00++++ word TimeCount = *clockw; +//00++++ word lasttime; word result1,result2; do { result1 = INL_GetJoyButtons(joy); -//00 lasttime = TimeCount; -//00 while(TimeCount == lasttime) +//00++++ lasttime = TimeCount; +//00++++ while(TimeCount == lasttime) //; result2 = INL_GetJoyButtons(joy); } while(result1 != result2);