UnrealImGui/Source/ImGui/Private/ImGuiModuleCommands.h
Sebastian f4718e404a Introduced input sharing properties:
- Added properties defining whether keyboard or gamepad input should be shared between ImGui and game.
- Added interface and commands to dynamically change introduced properties.
- Updated ImGui Input Handler to base default input responses on sharing properties.
2018-12-02 18:42:28 +00:00

49 lines
1.2 KiB
C++

// Distributed under the MIT License (MIT) (see accompanying LICENSE file)
#pragma once
#include <IConsoleManager.h>
class FImGuiModuleManager;
// Manges ImGui module console commands.
class FImGuiModuleCommands
{
public:
FImGuiModuleCommands(FImGuiModuleManager& InModuleManager);
~FImGuiModuleCommands();
private:
FImGuiModuleCommands(const FImGuiModuleCommands&) = delete;
FImGuiModuleCommands& operator=(const FImGuiModuleCommands&) = delete;
FImGuiModuleCommands(FImGuiModuleCommands&&) = delete;
FImGuiModuleCommands& operator=(FImGuiModuleCommands&&) = delete;
void InitializeSettings();
void RegisterSettingsDelegates();
void UnregisterSettingsDelegates();
void UpdateToggleInputKeyBinding();
void ToggleInput();
void ToggleKeyboardNavigation();
void ToggleGamepadNavigation();
void ToggleKeyboardInputSharing();
void ToggleGamepadInputSharing();
void ToggleDemo();
FImGuiModuleManager& ModuleManager;
FAutoConsoleCommand ToggleInputCommand;
FAutoConsoleCommand ToggleKeyboardNavigationCommand;
FAutoConsoleCommand ToggleGamepadNavigationCommand;
FAutoConsoleCommand ToggleKeyboardInputSharingCommand;
FAutoConsoleCommand ToggleGamepadInputSharingCommand;
FAutoConsoleCommand ToggleDemoCommand;
};