mirror of
https://github.com/ZDoom/Raze.git
synced 2025-06-02 18:21:06 +00:00
- Recover two ESyncBit
values for other uses.
* By masking aiming+centering, we have look bits :)
This commit is contained in:
parent
bae18b3023
commit
46b5977a6a
5 changed files with 27 additions and 14 deletions
|
@ -374,14 +374,22 @@ void ApplyGlobalInput(HIDInput* const hidInput, InputPacket* const inputBuffer)
|
|||
}
|
||||
else dpad_lock = 0;
|
||||
|
||||
gi->reapplyInputBits(inputBuffer);
|
||||
|
||||
inputBuffer->actions |= ActionsToSend;
|
||||
ActionsToSend = 0;
|
||||
|
||||
if (buttonMap.ButtonDown(gamefunc_Aim_Up) || (buttonMap.ButtonDown(gamefunc_Dpad_Aiming) && hidInput->joyaxes[JOYAXIS_Forward] > 0))
|
||||
{
|
||||
inputBuffer->actions |= SB_AIM_UP;
|
||||
inputBuffer->actions &= ~SB_CENTERVIEW;
|
||||
}
|
||||
|
||||
if ((buttonMap.ButtonDown(gamefunc_Aim_Down) || (buttonMap.ButtonDown(gamefunc_Dpad_Aiming) && hidInput->joyaxes[JOYAXIS_Forward] < 0)))
|
||||
{
|
||||
inputBuffer->actions |= SB_AIM_DOWN;
|
||||
inputBuffer->actions &= ~SB_CENTERVIEW;
|
||||
}
|
||||
|
||||
if (buttonMap.ButtonDown(gamefunc_Dpad_Aiming))
|
||||
hidInput->joyaxes[JOYAXIS_Forward] = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue