From 1bebdeb97d70c11273a69674eb736ab274802c0a Mon Sep 17 00:00:00 2001 From: sparky4 Date: Thu, 23 Sep 2021 18:01:14 -0500 Subject: [PATCH] update repo --- src/inputest.c | 2 +- src/lib/16_in.c | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) 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); -- 2.39.2