mirror of
https://github.com/TomHarte/CLK.git
synced 2024-11-25 16:31:42 +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;
|
|
};
|