mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-31 05:08:57 +00:00
Qt: Implement "Free look"
This commit is contained in:
parent
e51cf8870e
commit
bc51c34a96
2 changed files with 32 additions and 0 deletions
|
@ -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{};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue