Configurable keyboard mappings

This commit is contained in:
offtkp 2024-03-16 02:54:56 +02:00
parent 27ad7b01f3
commit e576e64736
9 changed files with 162 additions and 125 deletions

View file

@ -11,6 +11,7 @@
#include <vector>
#include "emulator.hpp"
#include "mappings.hpp"
#include "panda_qt/about_window.hpp"
#include "panda_qt/config_window.hpp"
#include "panda_qt/cheats_window.hpp"
@ -80,6 +81,7 @@ class MainWindow : public QMainWindow {
// This would normally be an std::unique_ptr but it's shared between threads so definitely not
Emulator* emu = nullptr;
InputMappings keyboardMappings;
std::thread emuThread;
std::atomic<bool> appRunning = true; // Is the application itself running?