ArcdpsExtension
 
Loading...
Searching...
No Matches
KeyInput.h
Go to the documentation of this file.
1#pragma once
2
3#include <ArcdpsUnofficialExtras/KeyBindStructs.h>
4#include <ArcdpsUnofficialExtras/Definitions.h>
5#include <cstdint>
6#include <windows.h>
7
15namespace ImGuiEx {
16 enum KeyCodeInputFlags_ : int32_t {
20 KeyCodeInputFlags_FixedModifier = 1 << 3, // Will set NoModifier internally, Always use the Modifier given in parameter `pFixedModifier`.
21 };
22 typedef int32_t KeyCodeInputFlags; // enum KeyCodeInputFlags_
23
32 bool KeyCodeInputWndHandle(HWND pWindowHandle, UINT pMessage, WPARAM pAdditionalW, LPARAM pAdditionalL);
33
42 bool KeyCodeInput(const char* pLabel, KeyBinds::Key& pKeyContainer, Language pLanguage, HKL pHkl, KeyCodeInputFlags pFlags = 0, KeyBinds::Modifier pFixedModifier = 0);
43
44 void OpenKeyCodePopupState(const KeyBinds::Key& pKeyContainer, KeyCodeInputFlags pFlags, KeyBinds::Modifier pFixedModifier = 0);
48 const KeyBinds::Key& GetKeyCodeInputKeyState();
49} // namespace ImGuiEx
Definition KeyInput.cpp:55
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:64
int32_t KeyCodeInputFlags
Definition KeyInput.h:22
void OpenKeyCodePopupState(const KeyBinds::Key &pKeyContainer, KeyCodeInputFlags pFlags, KeyBinds::Modifier pFixedModifier)
Definition KeyInput.cpp:167
void RestartKeyCodePopupState()
Definition KeyInput.cpp:179
KeyCodeInputFlags_
Definition KeyInput.h:16
@ KeyCodeInputFlags_NoMouse
Definition KeyInput.h:18
@ KeyCodeInputFlags_OnlyGW2Keys
Definition KeyInput.h:19
@ KeyCodeInputFlags_FixedModifier
Definition KeyInput.h:20
@ KeyCodeInputFlags_NoModifier
Definition KeyInput.h:17
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:191
void KeyCodeInputActiveFrame()
Definition KeyInput.cpp:183
void CloseKeyCodePopupState()
Definition KeyInput.cpp:175
const KeyBinds::Key & GetKeyCodeInputKeyState()
Definition KeyInput.cpp:187