Files
UE_SpaceStudio/SpaceStudioClient/Plugins/MultiWindow/Source/MultiWindow/Private/SMWindow.cpp
T

45 lines
1.3 KiB
C++

/************************************************************************/
/* Author: YWT20 */
/* Expected release year : 2024 */
/************************************************************************/
#include "SMWindow.h"
#include "MultiWindowActor.h"
FReply SMWindow::OnKeyChar(const FGeometry& MyGeometry, const FCharacterEvent& InCharacterEvent)
{
if (MultiWindowActor)
{
return MultiWindowActor->contentWidget->OnKeyChar(MyGeometry, InCharacterEvent).NativeReply;
}
return FReply::Unhandled();
}
FReply SMWindow::OnPreviewKeyDown(const FGeometry& MyGeometry, const FKeyEvent& InKeyEvent)
{
if (MultiWindowActor)
{
return MultiWindowActor->contentWidget->OnPreviewKeyDown(MyGeometry, InKeyEvent).NativeReply;
}
return FReply::Unhandled();
}
FReply SMWindow::OnKeyDown(const FGeometry& MyGeometry, const FKeyEvent& InKeyEvent)
{
if (MultiWindowActor)
{
return MultiWindowActor->contentWidget->OnKeyDown(MyGeometry, InKeyEvent).NativeReply;
}
return FReply::Unhandled();
}
FReply SMWindow::OnKeyUp(const FGeometry& MyGeometry, const FKeyEvent& InKeyEvent)
{
if (MultiWindowActor)
{
return MultiWindowActor->contentWidget->OnKeyUp(MyGeometry, InKeyEvent).NativeReply;
}
return FReply::Unhandled();
}