rpcsx/rpcs3/Input/basic_keyboard_handler.h
Nekotekina b7bf316c1a Don't randomly include "stdafx.h"
It's file for precompiled headers.
Include what is used, don't rely on transitive includes.
2020-12-22 14:32:30 +03:00

26 lines
587 B
C++

#pragma once
#include "util/types.hpp"
#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;
};