mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2025-06-10 22:47:58 -05:00
Allow focus on the Qt render widget
By default widgets are set to the focus policy Qt::NoFocus which disallows manually focusing it. Changing the policy to allow clicking the widget to set focus to it allows for keyboard input when not rendering to a popout window. This commit also sets focus to the widget when showing it. Fixes issue #158.
This commit is contained in:
@ -170,6 +170,7 @@ void GMainWindow::BootGame(std::string filename)
|
||||
render_window->GetEmuThread().start();
|
||||
|
||||
render_window->show();
|
||||
render_window->setFocus();
|
||||
OnStartGame();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user