1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-12-13 00:29:14 +00:00
CLK/OSBindings/Qt/keyboard.h
2024-01-21 21:49:59 -05:00

16 lines
295 B
C++

#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;
};