//===========================================================================// // // Purpose: // //===========================================================================// #include "core/stdafx.h" #include "vpc/IAppSystem.h" #include "inputsystem/inputsystem.h" //----------------------------------------------------------------------------- // Enables/disables input //----------------------------------------------------------------------------- void CInputSystem::EnableInput(bool bEnabled) { const static int index = 10; CallVFunc(index, this, bEnabled); } //----------------------------------------------------------------------------- // Enables/disables the inputsystem windows message pump //----------------------------------------------------------------------------- void CInputSystem::EnableMessagePump(bool bEnabled) { const static int index = 11; CallVFunc(index, this, bEnabled); } //----------------------------------------------------------------------------- // Poll current state //----------------------------------------------------------------------------- bool CInputSystem::IsButtonDown(ButtonCode_t Button) { const static int index = 13; return CallVFunc(index, this, Button); } /////////////////////////////////////////////////////////////////////////////// CInputSystem* g_pInputSystem = nullptr;