2022-04-09 06:05:47 +02:00
|
|
|
//===========================================================================//
|
|
|
|
//
|
|
|
|
// Purpose:
|
|
|
|
//
|
|
|
|
//===========================================================================//
|
|
|
|
|
2021-12-25 22:36:38 +01:00
|
|
|
#include "core/stdafx.h"
|
|
|
|
#include "vpc/IAppSystem.h"
|
|
|
|
#include "inputsystem/inputsystem.h"
|
|
|
|
|
2022-04-09 06:05:47 +02:00
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
// Enables/disables input
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
void CInputSystem::EnableInput(bool bEnabled)
|
|
|
|
{
|
|
|
|
static int index = 10;
|
|
|
|
CallVFunc<void>(index, this, bEnabled);
|
|
|
|
}
|
|
|
|
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
// Enables/disables the inputsystem windows message pump
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
void CInputSystem::EnableMessagePump(bool bEnabled)
|
|
|
|
{
|
|
|
|
static int index = 11;
|
|
|
|
CallVFunc<void>(index, this, bEnabled);
|
|
|
|
}
|
|
|
|
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
// Poll current state
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
bool CInputSystem::IsButtonDown(ButtonCode_t Button)
|
|
|
|
{
|
|
|
|
static int index = 13;
|
|
|
|
return CallVFunc<bool>(index, this, Button);
|
|
|
|
}
|
|
|
|
|
2021-12-25 22:36:38 +01:00
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
2022-04-18 03:35:08 +02:00
|
|
|
CInputSystem* g_pInputSystem = nullptr;
|