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,7 +42,8 @@ void QtEmuGL::paintGL()
|
|||||||
|
|
||||||
void QtEmuGL::mouseDoubleClickEvent(QMouseEvent *)
|
void QtEmuGL::mouseDoubleClickEvent(QMouseEvent *)
|
||||||
{
|
{
|
||||||
emit doubleClick();
|
if (!g_Config.bShowTouchControls || globalUIState != UISTATE_INGAME)
|
||||||
|
emit doubleClick();
|
||||||
}
|
}
|
||||||
|
|
||||||
void QtEmuGL::mousePressEvent(QMouseEvent *e)
|
void QtEmuGL::mousePressEvent(QMouseEvent *e)
|
||||||
|
Loading…
Reference in New Issue
Block a user