2018-11-24 19:54:01 +00:00
|
|
|
// Distributed under the MIT License (MIT) (see accompanying LICENSE file)
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <IConsoleManager.h>
|
|
|
|
|
|
|
|
|
2018-11-25 20:36:55 +00:00
|
|
|
class FImGuiModuleManager;
|
|
|
|
|
|
|
|
// Manges ImGui module console commands.
|
2018-11-24 19:54:01 +00:00
|
|
|
class FImGuiModuleCommands
|
|
|
|
{
|
2018-11-25 20:36:55 +00:00
|
|
|
public:
|
2018-11-24 19:54:01 +00:00
|
|
|
|
2018-11-25 20:36:55 +00:00
|
|
|
FImGuiModuleCommands(FImGuiModuleManager& InModuleManager);
|
2018-11-24 19:54:01 +00:00
|
|
|
~FImGuiModuleCommands();
|
|
|
|
|
2018-11-25 20:36:55 +00:00
|
|
|
private:
|
|
|
|
|
2018-11-25 19:11:48 +00:00
|
|
|
FImGuiModuleCommands(const FImGuiModuleCommands&) = delete;
|
|
|
|
FImGuiModuleCommands& operator=(const FImGuiModuleCommands&) = delete;
|
2018-11-24 19:54:01 +00:00
|
|
|
|
2018-11-25 19:11:48 +00:00
|
|
|
FImGuiModuleCommands(FImGuiModuleCommands&&) = delete;
|
|
|
|
FImGuiModuleCommands& operator=(FImGuiModuleCommands&&) = delete;
|
2018-11-24 19:54:01 +00:00
|
|
|
|
|
|
|
void InitializeSettings();
|
|
|
|
|
|
|
|
void RegisterSettingsDelegates();
|
|
|
|
void UnregisterSettingsDelegates();
|
|
|
|
|
|
|
|
void UpdateToggleInputKeyBinding();
|
|
|
|
|
|
|
|
void ToggleInput();
|
2018-11-25 19:11:48 +00:00
|
|
|
void ToggleKeyboardNavigation();
|
|
|
|
void ToggleGamepadNavigation();
|
2018-12-02 18:42:28 +00:00
|
|
|
void ToggleKeyboardInputSharing();
|
|
|
|
void ToggleGamepadInputSharing();
|
2018-11-25 19:11:48 +00:00
|
|
|
void ToggleDemo();
|
2018-11-24 19:54:01 +00:00
|
|
|
|
2018-11-25 20:36:55 +00:00
|
|
|
FImGuiModuleManager& ModuleManager;
|
|
|
|
|
2018-11-24 19:54:01 +00:00
|
|
|
FAutoConsoleCommand ToggleInputCommand;
|
2018-11-25 19:11:48 +00:00
|
|
|
FAutoConsoleCommand ToggleKeyboardNavigationCommand;
|
|
|
|
FAutoConsoleCommand ToggleGamepadNavigationCommand;
|
2018-12-02 18:42:28 +00:00
|
|
|
FAutoConsoleCommand ToggleKeyboardInputSharingCommand;
|
|
|
|
FAutoConsoleCommand ToggleGamepadInputSharingCommand;
|
2018-11-25 19:11:48 +00:00
|
|
|
FAutoConsoleCommand ToggleDemoCommand;
|
2018-11-24 19:54:01 +00:00
|
|
|
};
|