24 std::unique_ptr<Impl> impl;
28 void disableModKeys(std::string_view modName);
30 void triggerKeyDownCallback(
int keyCode, ::FocusImpact focusImpact,
::IClientInstance& client);
31 void triggerKeyUpCallback(
int keyCode, ::FocusImpact focusImpact,
::IClientInstance& client);
35 void registerKeyboardInputs(
37 std::string_view mappingName,
40 FocusImpact focusImpact
43 void processPendingKeyMappings(std::vector<::Keymapping>& newDefaultMapping);
48 using ButtonDownHandler = KeyHandle::ButtonDownHandler;
49 using ButtonUpHandler = KeyHandle::ButtonUpHandler;
51 LLNDAPI
static KeyRegistry& getInstance();
53 LLAPI KeyHandle& getOrCreateKey(
54 std::string_view name,
55 std::vector<int>
const& defaultKeyCodes,
56 bool allowRemap =
true,
57 std::weak_ptr<mod::Mod> mod = mod::NativeMod::current()
60 LLNDAPI
bool hasKey(std::string_view name);
62 LLNDAPI std::vector<std::string> getRegisteredKeys()
const;