mirror of
https://github.com/TomHarte/CLK.git
synced 2024-12-13 00:29:14 +00:00
16 lines
295 B
C++
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;
|
|
};
|