mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-05 22:47:03 +00:00
Move input to its own directory (#7126)
This commit is contained in:
parent
f03cb5c9c0
commit
e9c5c6e6bf
28 changed files with 67 additions and 66 deletions
25
rpcs3/Input/basic_keyboard_handler.h
Normal file
25
rpcs3/Input/basic_keyboard_handler.h
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
#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);
|
||||
s32 getUnmodifiedKey(QKeyEvent* event);
|
||||
void LoadSettings();
|
||||
private:
|
||||
QWindow* m_target = nullptr;
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue