1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-11-26 23:52:26 +00:00
CLK/OSBindings/Qt/keyboard.h

16 lines
295 B
C
Raw Normal View History

2024-01-22 02:49:59 +00:00
#pragma once
#include <QKeyEvent>
#include <map>
#include <optional>
#include "../../Inputs/Keyboard.hpp"
class KeyboardMapper {
public:
KeyboardMapper();
std::optional<Inputs::Keyboard::Key> keyForEvent(QKeyEvent *);
private:
std::map<quint32, Inputs::Keyboard::Key> keyByKeySym;
};