ArcdpsExtension
 
Loading...
Searching...
No Matches
KeyInput.h
Go to the documentation of this file.
1#pragma once
2
3#include <ArcdpsUnofficialExtras/KeyBindsTranslation.h>
4
12namespace ImGuiEx {
13 enum KeyCodeInputFlags_ : int32_t {
17 KeyCodeInputFlags_FixedModifier = 1 << 3, // Will set NoModifier internally, Always use the Modifier given in parameter `pFixedModifier`.
18 };
19 typedef int32_t KeyCodeInputFlags; // enum KeyCodeInputFlags_
20
29 bool KeyCodeInputWndHandle(HWND pWindowHandle, UINT pMessage, WPARAM pAdditionalW, LPARAM pAdditionalL);
30
39 bool KeyCodeInput(const char* pLabel, KeyBinds::Key& pKeyContainer, Language pLanguage, HKL pHkl, KeyCodeInputFlags pFlags = 0, KeyBinds::Modifier pFixedModifier = 0);
40
41 void OpenKeyCodePopupState(const KeyBinds::Key& pKeyContainer, KeyCodeInputFlags pFlags, KeyBinds::Modifier pFixedModifier = 0);
45 const KeyBinds::Key& GetKeyCodeInputKeyState();
46} // namespace ImGuiEx
Definition KeyInput.cpp:46
bool KeyCodeInputWndHandle(HWND pWindowHandle, UINT pMessage, WPARAM pAdditionalW, LPARAM pAdditionalL)
Has to be called in mod_wnd or your specific window handler. This function only has to be called once...
Definition KeyInput.cpp:55
int32_t KeyCodeInputFlags
Definition KeyInput.h:19
void OpenKeyCodePopupState(const KeyBinds::Key &pKeyContainer, KeyCodeInputFlags pFlags, KeyBinds::Modifier pFixedModifier)
Definition KeyInput.cpp:158
void RestartKeyCodePopupState()
Definition KeyInput.cpp:170
KeyCodeInputFlags_
Definition KeyInput.h:13
@ KeyCodeInputFlags_NoMouse
Definition KeyInput.h:15
@ KeyCodeInputFlags_OnlyGW2Keys
Definition KeyInput.h:16
@ KeyCodeInputFlags_FixedModifier
Definition KeyInput.h:17
@ KeyCodeInputFlags_NoModifier
Definition KeyInput.h:14
bool KeyCodeInput(const char *pLabel, KeyBinds::Key &pKeyContainer, Language pLanguage, HKL pHkl, KeyCodeInputFlags pFlags, KeyBinds::Modifier pFixedModifier)
Show a keybind on a button. On pressing that button a popup is opened and all keyevents are used to f...
Definition KeyInput.cpp:182
void KeyCodeInputActiveFrame()
Definition KeyInput.cpp:174
void CloseKeyCodePopupState()
Definition KeyInput.cpp:166
const KeyBinds::Key & GetKeyCodeInputKeyState()
Definition KeyInput.cpp:178