mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-16 04:30:38 +00:00
- CONTROL_GetInput()
: Reverse polarity of dx/dz and update processMovement()
appropriately.
This commit is contained in:
parent
6f5f66ad35
commit
c9708a5464
2 changed files with 4 additions and 4 deletions
|
@ -133,8 +133,8 @@ void processMovement(InputPacket* currInput, InputPacket* inputBuffer, ControlIn
|
||||||
|
|
||||||
// process remaining controller input.
|
// process remaining controller input.
|
||||||
currInput->horz -= scaleAdjust * hidInput->dpitch * hidspeed;
|
currInput->horz -= scaleAdjust * hidInput->dpitch * hidspeed;
|
||||||
currInput->svel -= xs_CRoundToInt(scaleAdjust * hidInput->dx * keymove * cntrlvelscale);
|
currInput->svel += xs_CRoundToInt(scaleAdjust * hidInput->dx * keymove * cntrlvelscale);
|
||||||
currInput->fvel -= xs_CRoundToInt(scaleAdjust * hidInput->dz * keymove * cntrlvelscale);
|
currInput->fvel += xs_CRoundToInt(scaleAdjust * hidInput->dz * keymove * cntrlvelscale);
|
||||||
|
|
||||||
// process keyboard turning keys.
|
// process keyboard turning keys.
|
||||||
if (buttonMap.ButtonDown(gamefunc_Strafe) && allowstrafe)
|
if (buttonMap.ButtonDown(gamefunc_Strafe) && allowstrafe)
|
||||||
|
|
|
@ -182,8 +182,8 @@ ControlInfo CONTROL_GetInput()
|
||||||
I_GetAxes(joyaxes);
|
I_GetAxes(joyaxes);
|
||||||
|
|
||||||
hidInput.dyaw += -joyaxes[JOYAXIS_Yaw];
|
hidInput.dyaw += -joyaxes[JOYAXIS_Yaw];
|
||||||
hidInput.dx += -joyaxes[JOYAXIS_Side] * .5f;
|
hidInput.dx += joyaxes[JOYAXIS_Side] * .5f;
|
||||||
hidInput.dz += -joyaxes[JOYAXIS_Forward] * .5f;
|
hidInput.dz += joyaxes[JOYAXIS_Forward] * .5f;
|
||||||
hidInput.dpitch += -joyaxes[JOYAXIS_Pitch];
|
hidInput.dpitch += -joyaxes[JOYAXIS_Pitch];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue