mirror of
https://github.com/TomHarte/CLK.git
synced 2025-08-05 08:26:28 +00:00
Starts to factor out the keyboard mapper.
The more easily to clarify as to #includes, etc, and to allow for a relevant constructor.
This commit is contained in:
15
OSBindings/Qt/keyboard.h
Normal file
15
OSBindings/Qt/keyboard.h
Normal file
@@ -0,0 +1,15 @@
|
||||
#ifndef KEYBOARD_H
|
||||
#define KEYBOARD_H
|
||||
|
||||
#include <QMainWindow>
|
||||
|
||||
|
||||
class KeyboardMapper {
|
||||
public:
|
||||
KeyboardMapper();
|
||||
std::optional<Inputs::Keyboard::Key> keyForEvent(QKeyEvent *);
|
||||
|
||||
private:
|
||||
};
|
||||
|
||||
#endif // MAINWINDOW_H
|
Reference in New Issue
Block a user