mirror of
https://github.com/Ed94/Cog.git
synced 2026-07-25 17:03:47 +00:00
Rename CogWindow plugin to Cog.
Fix Config saving not working
This commit is contained in:
@@ -25,7 +25,7 @@ public class CogCommonUI : ModuleRules
|
||||
"CogCommon",
|
||||
"CogImgui",
|
||||
"CogDebug",
|
||||
"CogWindow",
|
||||
"Cog",
|
||||
"CommonUI",
|
||||
"InputCore",
|
||||
}
|
||||
|
||||
@@ -4,11 +4,15 @@
|
||||
|
||||
ERouteUIInputResult UCogCommonUI_ActionRouter::ProcessInput(FKey Key, EInputEvent InputEvent) const
|
||||
{
|
||||
UWorld* World = GetWorld();
|
||||
|
||||
if (FCogImguiInputHelper::IsTopPriorityKey(World, Key))
|
||||
if (const UWorld* World = GetWorld())
|
||||
{
|
||||
return ERouteUIInputResult::Unhandled;
|
||||
if (const UPlayerInput* PlayerInput = FCogImguiInputHelper::GetPlayerInput(*World))
|
||||
{
|
||||
if (FCogImguiInputHelper::IsTopPriorityKey(*PlayerInput, Key))
|
||||
{
|
||||
return ERouteUIInputResult::Unhandled;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return UCommonUIActionRouterBase::ProcessInput(Key, InputEvent);
|
||||
|
||||
Reference in New Issue
Block a user