Add option to pause emulation when focus is lost

Fixes #875
This commit is contained in:
WaluigiWare64
2021-01-22 17:35:13 +00:00
parent 8a3a8b7c68
commit faf7cf752d
6 changed files with 54 additions and 18 deletions

View File

@ -184,6 +184,8 @@ public:
bool hasOGL;
QOpenGLContext* getOGLContext();
void onAppStateChanged(Qt::ApplicationState state);
protected:
void resizeEvent(QResizeEvent* event) override;
@ -262,6 +264,8 @@ private:
void createScreenPanel();
QString loadErrorStr(int error);
bool pausedManually;
public:
QWidget* panel;