- Remove now-unneeded inline wrapper getHidInput().

This commit is contained in:
Mitchell Richters 2023-03-29 22:28:44 +11:00
parent 46b5977a6a
commit b340807a6b
3 changed files with 3 additions and 7 deletions

View file

@ -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.

View file

@ -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))

View file

@ -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);
}