Update mouse lock logic

- fix headers
- update cursor whenever the mouse is moved
- unify cursor logic
- move m_mouse_hide_and_lock logic to handle_cursor (toggle_fullscreen is the trigger, not the handler)
- disable mouse lock and idle timer if the window is inactive
This commit is contained in:
Megamouse 2020-08-31 14:47:47 +02:00
parent ae0e454fc2
commit 1dac01498c
4 changed files with 72 additions and 32 deletions

View file

@ -1,8 +1,9 @@
#include "basic_mouse_handler.h"
#include <QApplication>
#include <QApplication>
#include <QCursor>
#include "basic_mouse_handler.h"
#include "rpcs3qt/gs_frame.h"
LOG_CHANNEL(input_log, "Input");
void basic_mouse_handler::Init(const u32 max_connect)