mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-09-16 06:52:30 +02:00
Update all function casts
This commit is contained in:
@@ -1,6 +1,39 @@
|
||||
//===========================================================================//
|
||||
//
|
||||
// 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 = reinterpret_cast<CInputSystem*>(p_IAppSystem_LoadLibrary.FindPatternSelf("48 89 05", ADDRESS::Direction::DOWN, 40).ResolveRelativeAddressSelf(0x3, 0x7).GetPtr());
|
||||
CInputSystem* g_pInputSystem = reinterpret_cast<CInputSystem*>(p_IAppSystem_LoadLibrary.FindPatternSelf("48 89 05", ADDRESS::Direction::DOWN, 40).ResolveRelativeAddressSelf(0x3, 0x7).GetPtr());
|
Reference in New Issue
Block a user