mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-16 23:17:29 +00:00
25 lines
540 B
C++
25 lines
540 B
C++
#pragma once
|
|
|
|
#include "stdafx.h"
|
|
#include "Emu/Io/KeyboardHandler.h"
|
|
|
|
#include <QKeyEvent>
|
|
#include <QWindow>
|
|
|
|
class basic_keyboard_handler final : public QObject, public KeyboardHandlerBase
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
virtual void Init(const u32 max_connect) override;
|
|
|
|
explicit basic_keyboard_handler();
|
|
|
|
void SetTargetWindow(QWindow* target);
|
|
bool eventFilter(QObject* obj, QEvent* ev) override;
|
|
void keyPressEvent(QKeyEvent* event);
|
|
void keyReleaseEvent(QKeyEvent* event);
|
|
void LoadSettings();
|
|
private:
|
|
QWindow* m_target = nullptr;
|
|
};
|