Qt: Allow rebinding keyboard controls (#779)

* Initial input UI draft

Co-Authored-By: Paris Oplopoios <parisoplop@gmail.com>

* More keybinding work

Co-Authored-By: Paris Oplopoios <parisoplop@gmail.com>

* Nit

Co-Authored-By: Paris Oplopoios <parisoplop@gmail.com>

* More nits

Co-Authored-By: Paris Oplopoios <parisoplop@gmail.com>

---------

Co-authored-by: Paris Oplopoios <parisoplop@gmail.com>
This commit is contained in:
wheremyfoodat
2025-07-18 04:08:08 +03:00
committed by GitHub
parent 3cae1bd256
commit 81f37e1699
14 changed files with 385 additions and 14 deletions

View File

@@ -1,6 +1,7 @@
#pragma once
#include <array>
#include <optional>
#include <string>
#include "helpers.hpp"
#include "kernel_types.hpp"
@@ -38,7 +39,10 @@ namespace HID::Keys {
CirclePadUp = 1 << 30, // Y >= 41
CirclePadDown = 1u << 31 // Y <= -41
};
}
const char* keyToName(u32 key);
u32 nameToKey(std::string name);
} // namespace HID::Keys
// Circular dependency because we need HID to spawn events
class Kernel;