mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 14:19:46 -06:00
Qt: Implement "Free look"
This commit is contained in:
@ -4,9 +4,12 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <array>
|
||||
|
||||
#include <QEvent>
|
||||
#include <QWidget>
|
||||
|
||||
class QMouseEvent;
|
||||
class QTimer;
|
||||
|
||||
class RenderWidget final : public QWidget
|
||||
@ -31,7 +34,9 @@ private:
|
||||
void OnHideCursorChanged();
|
||||
void OnKeepOnTopChanged(bool top);
|
||||
void SetFillBackground(bool fill);
|
||||
void OnFreeLookMouseMove(QMouseEvent* event);
|
||||
|
||||
static constexpr int MOUSE_HIDE_DELAY = 3000;
|
||||
QTimer* m_mouse_timer;
|
||||
std::array<float, 2> m_last_mouse{};
|
||||
};
|
||||
|
Reference in New Issue
Block a user