mirror of
https://github.com/ZDoom/Raze.git
synced 2025-01-19 07:01:09 +00:00
- Remove now-unneeded inline wrapper getHidInput()
.
This commit is contained in:
parent
46b5977a6a
commit
b340807a6b
3 changed files with 3 additions and 7 deletions
|
@ -181,7 +181,6 @@ void getInput(const double scaleAdjust, PlayerAngles* const plrAngles, InputPack
|
|||
|
||||
InputPacket input{};
|
||||
HIDInput hidInput{};
|
||||
getHidInput(&hidInput);
|
||||
ApplyGlobalInput(&hidInput, &inputBuffer);
|
||||
|
||||
// Directly update the camera angles if we're unsynchronised.
|
||||
|
|
|
@ -353,6 +353,9 @@ CCMD(show_weapon)
|
|||
|
||||
void ApplyGlobalInput(HIDInput* const hidInput, InputPacket* const inputBuffer)
|
||||
{
|
||||
inputState.GetMouseDelta(hidInput);
|
||||
if (use_joystick) I_GetAxes(hidInput->joyaxes);
|
||||
|
||||
if (WeaponToSend != 0) inputBuffer->setNewWeapon(WeaponToSend);
|
||||
WeaponToSend = 0;
|
||||
if (hidInput && buttonMap.ButtonDown(gamefunc_Dpad_Select))
|
||||
|
|
|
@ -103,9 +103,3 @@ inline float backendinputscale()
|
|||
{
|
||||
return (1.f / 16.f);
|
||||
}
|
||||
|
||||
inline void getHidInput(HIDInput* const hidInput)
|
||||
{
|
||||
inputState.GetMouseDelta(hidInput);
|
||||
if (use_joystick) I_GetAxes(hidInput->joyaxes);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue