mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-08 07:51:28 +12:00
Perform refactoring of pads to remove the ugly pad initialization.
This commit is contained in:
parent
b01e7e3362
commit
d1cde4d0a7
8 changed files with 127 additions and 53 deletions
|
@ -3,6 +3,7 @@
|
|||
#include "stdafx.h"
|
||||
#include "Emu/Io/MouseHandler.h"
|
||||
|
||||
#include <QWindow>
|
||||
#include <QMouseEvent>
|
||||
#include <QWheelEvent>
|
||||
|
||||
|
@ -12,8 +13,9 @@ class basic_mouse_handler final : public QObject, public MouseHandlerBase
|
|||
public:
|
||||
virtual void Init(const u32 max_connect) override;
|
||||
|
||||
basic_mouse_handler(QObject* target, QObject* parent);
|
||||
basic_mouse_handler();
|
||||
|
||||
void SetTargetWindow(QWindow* target);
|
||||
void MouseButtonDown(QMouseEvent* event);
|
||||
void MouseButtonUp(QMouseEvent* event);
|
||||
void MouseScroll(QWheelEvent* event);
|
||||
|
@ -21,5 +23,5 @@ public:
|
|||
|
||||
bool eventFilter(QObject* obj, QEvent* ev);
|
||||
private:
|
||||
QObject* m_target;
|
||||
QWindow* m_target = nullptr;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue