Fix input bugs from the C++ transistion and implement special key combo stubs

This commit is contained in:
Cameron Gutman
2018-06-28 02:04:51 -07:00
parent 0821c66d8c
commit d1a512538c
3 changed files with 66 additions and 1 deletions

View File

@@ -249,7 +249,7 @@ void Session::exec()
m_ProgressBox.close();
QCoreApplication::processEvents(QEventLoop::ExcludeUserInputEvents);
//SDL_CreateWindow("SDL", 0, 0, 1280, 720, SDL_WINDOW_INPUT_GRABBED);
SDL_Window* wnd = SDL_CreateWindow("SDL Test Window", 0, 0, 1280, 720, SDL_WINDOW_INPUT_GRABBED);
// Hijack this thread to be the SDL main thread. We have to do this
// because we want to suspend all Qt processing until the stream is over.
@@ -295,4 +295,5 @@ void Session::exec()
Exit:
s_ActiveSession = nullptr;
LiStopConnection();
SDL_DestroyWindow(wnd);
}