InputSystem: implement GetAttachedWindow()

No longer virtual in r5, but is still needed; reimplemented.
This commit is contained in:
Kawe Mazidjatari 2024-06-16 20:27:05 +02:00
parent e10981821b
commit a165534b3c
2 changed files with 11 additions and 0 deletions

View File

@ -52,6 +52,14 @@
// return CallVFunc<ButtonCode_t>(index, this, pString);
//}
//-----------------------------------------------------------------------------
// Returns the currently attached window
//-----------------------------------------------------------------------------
PlatWindow_t CInputSystem::GetAttachedWindow() const
{
return (PlatWindow_t)m_hAttachedHWnd;
}
LRESULT CInputSystem::WindowProc(void* unused, HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
{
if (g_pInputSystem->m_bEnabled &&

View File

@ -11,6 +11,9 @@ class CInputSystem : public CTier1AppSystem< IInputSystem >
{
public:
// !!!interface implemented in engine!!!
public:
PlatWindow_t GetAttachedWindow() const;
public:
// Hook statics:
static LRESULT WindowProc(void* unused, HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam);