hkMouseInputEnabled.Create(MEM::GetVFunc(I::Input, 16U), reinterpret_cast<void*>(&MouseInputEnabled))
bool CS_FASTCALL H::MouseInputEnabled(void* pThisptr)
{
const auto oMouseInputEnabled = hkMouseInputEnabled.GetOriginal();
return MENU::bMainWindowOpened ? false : oMouseInputEnabled(pThisptr);
}
---------------------------------------------------------------------------------------------------------------------------------------------------
hkIsRelativeMouseMode.Create(MEM::GetVFunc(I::InputSystem, 76U), reinterpret_cast<void*>(&IsRelativeMouseMode))
void* H::IsRelativeMouseMode(void* pThisptr, bool bActive)
{
const auto oIsRelativeMouseMode = hkIsRelativeMouseMode.GetOriginal();
MENU::bMainActive = bActive;
if (MENU::bMainWindowOpened)
return oIsRelativeMouseMode(pThisptr, false);
return oIsRelativeMouseMode(pThisptr, bActive);
}