Core: Switch controller interface to render widget on booting

Previously, the Qt frontend would initialize the controller
interface on starting, resulting in the cursor position being
relative to the main window, instead of the render window.
This commit is contained in:
Stenzek 2018-10-27 20:06:35 +10:00
parent a7f334dc2a
commit 52828901ef
4 changed files with 20 additions and 0 deletions

View file

@ -80,6 +80,15 @@ void ControllerInterface::Initialize(const WindowSystemInfo& wsi)
RefreshDevices();
}
void ControllerInterface::ChangeWindow(void* hwnd)
{
if (!m_is_init)
return;
m_wsi.render_surface = hwnd;
RefreshDevices();
}
void ControllerInterface::RefreshDevices()
{
if (!m_is_init)