Use dynamic_cast to convert QWindow m_target to gs_frame

Used to access get_mouse_lock_state rather than going through the QWindow property tables.

Modify mouse hide and lock to default OFF when entering Windowed mode, and to default ON when entering Fullscreen unless 'show cursor in fullscreen' is configured
This commit is contained in:
Bevan Weiss 2020-08-31 00:09:38 +10:00 committed by Megamouse
parent ca3ee019cc
commit ae0e454fc2
5 changed files with 22 additions and 25 deletions

View file

@ -2,6 +2,7 @@
#include "stdafx.h"
#include "Emu/Io/MouseHandler.h"
#include "rpcs3qt/gs_frame.h"
#include <QWindow>
#include <QMouseEvent>