mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
Moved every pattern to IDetour interface. This allows for debugging patterns scans more easily, and create threads during pattern searching (Operation is now fired in APIENTRY). Also cleaned up some unused code/extraneous comments. Slightly increased performance by purging duplicate patterns. Made variable search less dependent from other results (except if pattern-to-scan results is within the same header)
39 lines
1.3 KiB
C++
39 lines
1.3 KiB
C++
//===========================================================================//
|
|
//
|
|
// Purpose:
|
|
//
|
|
//===========================================================================//
|
|
|
|
#include "core/stdafx.h"
|
|
#include "vpc/IAppSystem.h"
|
|
#include "inputsystem/inputsystem.h"
|
|
|
|
//-----------------------------------------------------------------------------
|
|
// 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);
|
|
}
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
CInputSystem* g_pInputSystem = nullptr; |