mirror of
https://github.com/kevinporetti/UnrealImGui.git
synced 2025-01-18 16:30:32 +00:00
f4718e404a
- 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.
49 lines
1.2 KiB
C++
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;
|
|
};
|