mirror of
https://github.com/ZDoom/Raze.git
synced 2025-02-20 18:42:26 +00:00
- Exhumed: Remove some dead input code that isn't in any usage.
This commit is contained in:
parent
3778327818
commit
edf54b4b0a
5 changed files with 1 additions and 63 deletions
|
@ -79,7 +79,6 @@ void StatusMessage(int messageTime, const char *fmt, ...);
|
|||
|
||||
void DoSpiritHead();
|
||||
|
||||
void CheckKeys2();
|
||||
void GameTicker();
|
||||
void InitLevel(MapRecord*);
|
||||
void InitNewGame();
|
||||
|
|
|
@ -65,7 +65,6 @@ void DoTitle(CompletionFunc completion);
|
|||
|
||||
void GameInterface::Render()
|
||||
{
|
||||
CheckKeys2();
|
||||
drawtime.Reset();
|
||||
drawtime.Clock();
|
||||
|
||||
|
|
|
@ -104,7 +104,6 @@ uint8_t LoadLevel(MapRecord* map)
|
|||
InitPushBlocks();
|
||||
InitPlayer();
|
||||
InitItems();
|
||||
InitInput();
|
||||
|
||||
if (map->gameflags & LEVEL_EX_COUNTDOWN) {
|
||||
InitEnergyTile();
|
||||
|
|
|
@ -25,45 +25,8 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|||
|
||||
BEGIN_PS_NS
|
||||
|
||||
short nInputStack = 0;
|
||||
|
||||
short bStackNode[kMaxPlayers];
|
||||
|
||||
short nTypeStack[kMaxPlayers];
|
||||
PlayerInput sPlayerInput[kMaxPlayers];
|
||||
|
||||
int *pStackPtr;
|
||||
|
||||
// (nInputStack * 32) - 11;
|
||||
|
||||
void PushInput(PlayerInput *pInput, int edx)
|
||||
{
|
||||
if (!bStackNode[edx])
|
||||
{
|
||||
// memcpy(sInputStack[nInputStack], pInput,
|
||||
}
|
||||
}
|
||||
|
||||
int PopInput()
|
||||
{
|
||||
if (!nInputStack)
|
||||
return -1;
|
||||
|
||||
nInputStack--;
|
||||
|
||||
// TEMP
|
||||
return 0;
|
||||
}
|
||||
|
||||
void InitInput()
|
||||
{
|
||||
memset(nTypeStack, 0, sizeof(nTypeStack));
|
||||
nInputStack = 0;
|
||||
memset(bStackNode, 0, sizeof(bStackNode));
|
||||
|
||||
// pStackPtr = &sInputStack;
|
||||
}
|
||||
|
||||
void ClearSpaceBar(short nPlayer)
|
||||
{
|
||||
sPlayerInput[nPlayer].actions &= SB_OPEN;
|
||||
|
@ -71,22 +34,6 @@ void ClearSpaceBar(short nPlayer)
|
|||
}
|
||||
|
||||
|
||||
void BackupInput()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void SendInput()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
|
||||
void CheckKeys2()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
void GameInterface::GetInput(InputPacket* packet, ControlInfo* const hidInput)
|
||||
{
|
||||
if (paused || M_Active())
|
||||
|
@ -122,11 +69,7 @@ void GameInterface::GetInput(InputPacket* packet, ControlInfo* const hidInput)
|
|||
{
|
||||
pPlayer->angle.applyinput(input.avel, &sPlayerInput[nLocalPlayer].actions, scaleAdjust);
|
||||
pPlayer->horizon.applyinput(input.horz, &sPlayerInput[nLocalPlayer].actions, scaleAdjust);
|
||||
|
||||
if (input.horz)
|
||||
{
|
||||
pPlayer->bPlayerPan = pPlayer->bLockPan = true;
|
||||
}
|
||||
pPlayer->bPlayerPan = pPlayer->bLockPan = input.horz != 0;
|
||||
}
|
||||
|
||||
pPlayer->angle.processhelpers(scaleAdjust);
|
||||
|
|
|
@ -54,8 +54,6 @@ struct PlayerInput
|
|||
|
||||
};
|
||||
|
||||
void InitInput();
|
||||
|
||||
void ClearSpaceBar(short nPlayer);
|
||||
|
||||
int GetLocalInput();
|
||||
|
|
Loading…
Reference in a new issue