mirror of
https://github.com/RPCSX/rpcsx.git
synced 2025-12-06 07:12:14 +01:00
24 lines
533 B
C++
24 lines
533 B
C++
#pragma once
|
|
|
|
#include "stdafx.h"
|
|
#include "Emu/Io/KeyboardHandler.h"
|
|
|
|
#include <QObject>
|
|
#include <QKeyEvent>
|
|
|
|
class basic_keyboard_handler final : public QObject, public KeyboardHandlerBase
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
virtual void Init(const u32 max_connect) override;
|
|
|
|
explicit basic_keyboard_handler(QObject* target = nullptr, QObject* parent = nullptr);
|
|
|
|
bool eventFilter(QObject* obj, QEvent* ev);
|
|
void keyPressEvent(QKeyEvent* event);
|
|
void keyReleaseEvent(QKeyEvent* event);
|
|
void LoadSettings();
|
|
private:
|
|
QObject* m_target;
|
|
};
|