mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-28 12:30:46 +00:00
- Blood/Exhumed/SW: Hook up gi->clearlocalinputstate()
.
This commit is contained in:
parent
9b85816f70
commit
e078ea6ebd
6 changed files with 40 additions and 0 deletions
|
@ -71,6 +71,7 @@ struct GameInterface : ::GameInterface
|
||||||
{
|
{
|
||||||
const char* Name() override { return "Blood"; }
|
const char* Name() override { return "Blood"; }
|
||||||
void app_init() override;
|
void app_init() override;
|
||||||
|
void clearlocalinputstate() override;
|
||||||
bool GenerateSavePic() override;
|
bool GenerateSavePic() override;
|
||||||
void FreeLevelData() override;
|
void FreeLevelData() override;
|
||||||
void FreeGameData() override;
|
void FreeGameData() override;
|
||||||
|
|
|
@ -170,4 +170,16 @@ void GameInterface::GetInput(InputPacket* packet, ControlInfo* const hidInput)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//---------------------------------------------------------------------------
|
||||||
|
//
|
||||||
|
// This is called from ImputState::ClearAllInput and resets all static state being used here.
|
||||||
|
//
|
||||||
|
//---------------------------------------------------------------------------
|
||||||
|
|
||||||
|
void GameInterface::clearlocalinputstate()
|
||||||
|
{
|
||||||
|
gInput = {};
|
||||||
|
turnHeldTime = 0;
|
||||||
|
}
|
||||||
|
|
||||||
END_BLD_NS
|
END_BLD_NS
|
||||||
|
|
|
@ -235,6 +235,7 @@ struct GameInterface : ::GameInterface
|
||||||
{
|
{
|
||||||
const char* Name() override { return "Exhumed"; }
|
const char* Name() override { return "Exhumed"; }
|
||||||
void app_init() override;
|
void app_init() override;
|
||||||
|
void clearlocalinputstate() override;
|
||||||
bool GenerateSavePic() override;
|
bool GenerateSavePic() override;
|
||||||
void DrawNativeMenuText(int fontnum, int state, double xpos, double ypos, float fontscale, const char* text, int flags) override;
|
void DrawNativeMenuText(int fontnum, int state, double xpos, double ypos, float fontscale, const char* text, int flags) override;
|
||||||
void MenuOpened() override;
|
void MenuOpened() override;
|
||||||
|
|
|
@ -232,4 +232,17 @@ void GameInterface::GetInput(InputPacket* packet, ControlInfo* const hidInput)
|
||||||
if (packet) *packet = localInput;
|
if (packet) *packet = localInput;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//---------------------------------------------------------------------------
|
||||||
|
//
|
||||||
|
// This is called from ImputState::ClearAllInput and resets all static state being used here.
|
||||||
|
//
|
||||||
|
//---------------------------------------------------------------------------
|
||||||
|
|
||||||
|
void GameInterface::clearlocalinputstate()
|
||||||
|
{
|
||||||
|
localInput = {};
|
||||||
|
turn = 0;
|
||||||
|
counter = 0;
|
||||||
|
}
|
||||||
|
|
||||||
END_PS_NS
|
END_PS_NS
|
||||||
|
|
|
@ -2182,6 +2182,7 @@ struct GameInterface : ::GameInterface
|
||||||
{
|
{
|
||||||
const char* Name() override { return "ShadowWarrior"; }
|
const char* Name() override { return "ShadowWarrior"; }
|
||||||
void app_init() override;
|
void app_init() override;
|
||||||
|
void clearlocalinputstate() override;
|
||||||
void FreeGameData() override;
|
void FreeGameData() override;
|
||||||
void FreeLevelData() override;
|
void FreeLevelData() override;
|
||||||
bool GenerateSavePic() override;
|
bool GenerateSavePic() override;
|
||||||
|
|
|
@ -344,4 +344,16 @@ void GameInterface::GetInput(InputPacket *packet, ControlInfo* const hidInput)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//---------------------------------------------------------------------------
|
||||||
|
//
|
||||||
|
// This is called from ImputState::ClearAllInput and resets all static state being used here.
|
||||||
|
//
|
||||||
|
//---------------------------------------------------------------------------
|
||||||
|
|
||||||
|
void GameInterface::clearlocalinputstate()
|
||||||
|
{
|
||||||
|
loc = {};
|
||||||
|
turnheldtime = 0;
|
||||||
|
}
|
||||||
|
|
||||||
END_SW_NS
|
END_SW_NS
|
||||||
|
|
Loading…
Reference in a new issue