- moved all keyboard related code into the InputState class, so that looking for this stuff is easier.

Sadly there's 1ß00 lines of code using this...
This commit is contained in:
Christoph Oelckers 2019-11-04 00:53:55 +01:00
parent 1b65510bc2
commit b747df60ee
50 changed files with 1009 additions and 1069 deletions

View file

@ -1580,17 +1580,17 @@ pSwordRest(PANEL_SPRITEp psp)
SWBOOL force = !!TEST(psp->flags, PANF_UNHIDE_SHOOT);
#if 0
if (KB_KeyPressed(KEYSC_SEMI))
if (inputState.GetKeyStatus(KEYSC_SEMI))
{
KB_KeyPressed(KEYSC_SEMI) = 0;
inputState.GetKeyStatus(KEYSC_SEMI) = 0;
SwordAng -= 4;
//DSPRINTF(ds,"SwordAng %d", SwordAng);
MONO_PRINT(ds);
}
if (KB_KeyPressed(KEYSC_QUOTE))
if (inputState.GetKeyStatus(KEYSC_QUOTE))
{
KB_KeyPressed(KEYSC_QUOTE) = 0;
inputState.GetKeyStatus(KEYSC_QUOTE) = 0;
SwordAng += 4;
//DSPRINTF(ds,"SwordAng %d", SwordAng);
MONO_PRINT(ds);