mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2026-01-03 02:01:27 -06:00
* Implemented guest-to-host function pointers (WIP) Co-Authored-By: Skyth (Asilkan) <19259897+blueskythlikesclouds@users.noreply.github.com> * function: support more types for function pointers * api: ported BlueBlur headers and misc. research * Move over function-pointers changes from options-menu branch. --------- Co-authored-by: Skyth (Asilkan) <19259897+blueskythlikesclouds@users.noreply.github.com>
14 lines
336 B
C++
14 lines
336 B
C++
namespace SWA
|
|
{
|
|
// TODO: Hedgehog::Base::TSynchronizedPtr<CInputState>
|
|
inline CInputState* CInputState::GetInstance()
|
|
{
|
|
return *(xpointer<CInputState>*)MmGetHostAddress(0x83361F5C);
|
|
}
|
|
|
|
inline const SPadState& CInputState::GetPadState() const
|
|
{
|
|
return m_PadStates[m_CurrentPadStateIndex];
|
|
}
|
|
}
|