Qt/Input: fix numpad (regression)

This commit is contained in:
Unknown 2017-12-22 17:03:24 +01:00 committed by Ivan
parent 8b31a9448a
commit 58d8d12665
2 changed files with 105 additions and 37 deletions

View file

@ -63,9 +63,11 @@ public:
std::string GetMouseName(const QMouseEvent* event);
std::string GetMouseName(u32 button);
QStringList GetKeyNames(const QKeyEvent* keyEvent);
std::string GetKeyName(const QKeyEvent* keyEvent);
std::string GetKeyName(const u32& keyCode);
u32 GetKeyCode(const std::string& keyName);
u32 GetKeyCode(const QString& keyName);
protected:
void Key(const u32 code, bool pressed, u16 value = 255);