r5sdk/r5dev/thirdparty/imgui/include/imgui_utility.h
Kawe Mazidjatari 3be9f3dd95 Use KeyValues for ImGui panel key binds
Use KeyValues instead of JSON for ImGui panel key binds. The Server Browser 'default' key has been swapped with the 'extended' one: Default = 'VK_F10', Extended = 'VK_HOME'.
2023-03-25 17:13:16 +01:00

34 lines
495 B
C++

#pragma once
constexpr char IMGUI_BIND_FILE[] = "keymap.vdf";
enum class ImGuiStyle_t
{
NONE = -1,
DEFAULT,
LEGACY,
MODERN
};
class ImGuiConfig
{
public:
struct
{
int m_nBind0 = VK_OEM_3;
int m_nBind1 = VK_INSERT;
} m_ConsoleConfig;
struct
{
int m_nBind0 = VK_F10;
int m_nBind1 = VK_HOME;
} m_BrowserConfig;
void Load();
void Save();
ImGuiStyle_t InitStyle() const;
};
extern ImGuiConfig* g_pImGuiConfig;