mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
InputSystem: implement GetAttachedWindow()
No longer virtual in r5, but is still needed; reimplemented.
This commit is contained in:
parent
e10981821b
commit
a165534b3c
@ -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 &&
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user