- WHaven: Uplift gi->GetInput() to work after merging.

This commit is contained in:
Mitchell Richters 2021-11-27 23:18:27 +11:00 committed by Christoph Oelckers
parent 0ccf2bb9ef
commit 8f4cd93023
3 changed files with 6 additions and 7 deletions

View file

@ -93,7 +93,7 @@ static void UpdatePlayerSpriteAngle(PLAYER& plr)
plr.actor()->s().ang = plr.angle.ang.asbuild(); plr.actor()->s().ang = plr.angle.ang.asbuild();
} }
void GameInterface::GetInput(InputPacket* packet, ControlInfo* const hidInput) void GameInterface::GetInput(ControlInfo* const hidInput, double const scaleAdjust, InputPacket* packet)
{ {
if (paused || M_Active()) if (paused || M_Active())
{ {
@ -112,7 +112,6 @@ void GameInterface::GetInput(InputPacket* packet, ControlInfo* const hidInput)
if (plr.dead) localInput.actions &= SB_OPEN; if (plr.dead) localInput.actions &= SB_OPEN;
} }
double const scaleAdjust = InputScale();
InputPacket input{}; InputPacket input{};
if (!plr.dead) if (!plr.dead)

View file

@ -527,7 +527,7 @@ struct GameInterface : public ::GameInterface
FString GetCoordString() override; FString GetCoordString() override;
//void ExitFromMenu() override; //void ExitFromMenu() override;
//void DrawPlayerSprite(const DVector2& origin, bool onteam) override; //void DrawPlayerSprite(const DVector2& origin, bool onteam) override;
void GetInput(InputPacket* packet, ControlInfo* const hidInput) override; void GetInput(ControlInfo* const hidInput, double const scaleAdjust, InputPacket* packet) override;
void UpdateSounds() override; void UpdateSounds() override;
void Startup() override; void Startup() override;
void DrawBackground() override; void DrawBackground() override;