mirror of
https://github.com/TomHarte/CLK.git
synced 2024-11-30 04:50:08 +00:00
19 lines
344 B
C++
19 lines
344 B
C++
#ifndef KEYBOARD_H
|
|
#define KEYBOARD_H
|
|
|
|
#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;
|
|
};
|
|
|
|
#endif // MAINWINDOW_H
|