mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-09 00:11:24 +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
|
@ -5,8 +5,8 @@
|
|||
#include "stdafx.h"
|
||||
#include "Emu/System.h"
|
||||
|
||||
#include <QWindow>
|
||||
#include <QKeyEvent>
|
||||
#include <QObject>
|
||||
|
||||
struct keyboard_pad_config final : cfg::node
|
||||
{
|
||||
|
@ -58,13 +58,14 @@ class keyboard_pad_handler final : public QObject, public PadHandlerBase
|
|||
public:
|
||||
virtual void Init(const u32 max_connect) override;
|
||||
|
||||
keyboard_pad_handler(QObject* target, QObject* parent);
|
||||
keyboard_pad_handler();
|
||||
|
||||
void SetTargetWindow(QWindow* target);
|
||||
void keyPressEvent(QKeyEvent* event);
|
||||
void keyReleaseEvent(QKeyEvent* event);
|
||||
void LoadSettings();
|
||||
|
||||
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