mirror of
https://github.com/kevinporetti/UnrealImGui.git
synced 2025-01-19 00:40:32 +00:00
5968c3ce84
- Added ImGui Input Handler class that allows to customize handling of the keyboard and gamepad input. - Added ImGui Settings to allow specify custom input handler implementation. - Added editor support for ImGui Settings. - Input handling in ImGui Widget is divided for querying the handler (more customizable) and actual input processing based on the handler’s response (fixed and simplified). - Removed a need for checking console state in different input handling functions in ImGui Widget by suppressing keyboard focus support when console is opened.
31 lines
548 B
C++
31 lines
548 B
C++
// Copyright 1998-2018 Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#if WITH_EDITOR
|
|
|
|
// Registers module's settings in editor (due to a small size of this code we don't use a separate editor module).
|
|
class FImGuiEditor
|
|
{
|
|
public:
|
|
|
|
FImGuiEditor();
|
|
~FImGuiEditor();
|
|
|
|
private:
|
|
|
|
bool IsRegistrationCompleted() const { return bSettingsRegistered; }
|
|
|
|
void Register();
|
|
void Unregister();
|
|
|
|
void CreateRegistrator();
|
|
void ReleaseRegistrator();
|
|
|
|
FDelegateHandle RegistratorHandle;
|
|
|
|
bool bSettingsRegistered = false;
|
|
};
|
|
|
|
#endif // WITH_EDITOR
|