mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-27 07:20:49 +00:00
Qt: Don't allow double click to resize window when the user could be using touch controls.
This commit is contained in:
parent
5263d53282
commit
296372262c
@ -4,6 +4,7 @@
|
|||||||
|
|
||||||
#include "base/display.h"
|
#include "base/display.h"
|
||||||
#include "base/timeutil.h"
|
#include "base/timeutil.h"
|
||||||
|
#include "Core/Config.h"
|
||||||
|
|
||||||
QtEmuGL::QtEmuGL(QWidget *parent) :
|
QtEmuGL::QtEmuGL(QWidget *parent) :
|
||||||
QGLWidget(parent)
|
QGLWidget(parent)
|
||||||
@ -41,6 +42,7 @@ void QtEmuGL::paintGL()
|
|||||||
|
|
||||||
void QtEmuGL::mouseDoubleClickEvent(QMouseEvent *)
|
void QtEmuGL::mouseDoubleClickEvent(QMouseEvent *)
|
||||||
{
|
{
|
||||||
|
if (!g_Config.bShowTouchControls || globalUIState != UISTATE_INGAME)
|
||||||
emit doubleClick();
|
emit doubleClick();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user