This commit is contained in:
Paris Oplopoios 2025-03-18 13:14:50 +00:00 committed by GitHub
commit b9761e7e4b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 171 additions and 6 deletions

View file

@ -1,6 +1,7 @@
#pragma once
#include <array>
#include <optional>
#include <string>
#include "helpers.hpp"
#include "kernel_types.hpp"
@ -32,7 +33,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;