mirror of
https://github.com/kevinporetti/UnrealImGui.git
synced 2025-01-19 00:40:32 +00:00
36 lines
863 B
C
36 lines
863 B
C
|
// Distributed under the MIT License (MIT) (see accompanying LICENSE file)
|
||
|
|
||
|
#pragma once
|
||
|
|
||
|
#include <IConsoleManager.h>
|
||
|
|
||
|
|
||
|
// Wrapper for ImGui console commands.
|
||
|
class FImGuiModuleCommands
|
||
|
{
|
||
|
// Allow module manager to control life-cycle of this class.
|
||
|
friend class FImGuiModuleManager;
|
||
|
|
||
|
FImGuiModuleCommands();
|
||
|
~FImGuiModuleCommands();
|
||
|
|
||
|
// Disable copy semantics.
|
||
|
FImGuiModuleCommands(const FImGuiModuleCommands&) = default;
|
||
|
FImGuiModuleCommands& operator=(const FImGuiModuleCommands&) = default;
|
||
|
|
||
|
// Disable move semantics.
|
||
|
FImGuiModuleCommands(FImGuiModuleCommands&&) = default;
|
||
|
FImGuiModuleCommands& operator=(FImGuiModuleCommands&&) = default;
|
||
|
|
||
|
void InitializeSettings();
|
||
|
|
||
|
void RegisterSettingsDelegates();
|
||
|
void UnregisterSettingsDelegates();
|
||
|
|
||
|
void UpdateToggleInputKeyBinding();
|
||
|
|
||
|
void ToggleInput();
|
||
|
|
||
|
FAutoConsoleCommand ToggleInputCommand;
|
||
|
};
|