ArcdpsExtension
 
Loading...
Searching...
No Matches
KeyInput.cpp File Reference
#include "KeyInput.h"
#include <imgui/imgui.h>
#include <imgui/imgui_internal.h>
#include "ExtensionTranslations.h"
#include "Localization.h"
Include dependency graph for KeyInput.cpp:

Namespaces

namespace  ImGuiEx
 

Macros

#define POPUP_NAME_TEXT   Localization::STranslate(ET_KeyInputPopupName)
 
#define APPLY_TEXT   Localization::STranslate(ET_ApplyButton).c_str()
 
#define CANCEL_TEXT   Localization::STranslate(ET_CancelButton).c_str()
 

Functions

bool ImGuiEx::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 per program.
 
void ImGuiEx::OpenKeyCodePopupState (const KeyBinds::Key &pKeyContainer, KeyCodeInputFlags pFlags, KeyBinds::Modifier pFixedModifier)
 
void ImGuiEx::CloseKeyCodePopupState ()
 
void ImGuiEx::RestartKeyCodePopupState ()
 
void ImGuiEx::KeyCodeInputActiveFrame ()
 
const KeyBinds::Key & ImGuiEx::GetKeyCodeInputKeyState ()
 
bool ImGuiEx::KeyCodeInput (const char *pLabel, KeyBinds::Key &pKeyContainer, Language pLanguage, HKL pHkl, KeyCodeInputFlags pFlags=0, KeyBinds::Modifier pFixedModifier=0)
 Show a keybind on a button. On pressing that button a popup is opened and all keyevents are used to fill the keybind. (Kind of like GW2 does it).
 

Macro Definition Documentation

◆ APPLY_TEXT

#define APPLY_TEXT   Localization::STranslate(ET_ApplyButton).c_str()

◆ CANCEL_TEXT

#define CANCEL_TEXT   Localization::STranslate(ET_CancelButton).c_str()

◆ POPUP_NAME_TEXT

#define POPUP_NAME_TEXT   Localization::STranslate(ET_KeyInputPopupName)