You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
42 lines
1.5 KiB
C++
42 lines
1.5 KiB
C++
// Copyright 1998-2017 Epic Games, Inc. All Rights Reserved.
|
|
|
|
#include "ViewportInteractionInputProcessor.h"
|
|
#include "Input/Events.h"
|
|
#include "Misc/App.h"
|
|
#include "ViewportWorldInteractionManager.h"
|
|
|
|
FViewportInteractionInputProcessor::FViewportInteractionInputProcessor( FViewportWorldInteractionManager* InWorldInteractionManager )
|
|
: WorldInteractionManager( InWorldInteractionManager )
|
|
{
|
|
}
|
|
|
|
FViewportInteractionInputProcessor::~FViewportInteractionInputProcessor()
|
|
{
|
|
WorldInteractionManager = nullptr;
|
|
}
|
|
|
|
void FViewportInteractionInputProcessor::Tick( const float DeltaTime, FSlateApplication& SlateApp, TSharedRef<ICursor> Cursor )
|
|
{
|
|
}
|
|
|
|
bool FViewportInteractionInputProcessor::HandleKeyDownEvent( FSlateApplication& SlateApp, const FKeyEvent& InKeyEvent )
|
|
{
|
|
return WorldInteractionManager->PreprocessedInputKey( InKeyEvent.GetKey(), InKeyEvent.IsRepeat() ? IE_Repeat : IE_Pressed );
|
|
}
|
|
|
|
bool FViewportInteractionInputProcessor::HandleKeyUpEvent( FSlateApplication& SlateApp, const FKeyEvent& InKeyEvent )
|
|
{
|
|
return WorldInteractionManager->PreprocessedInputKey( InKeyEvent.GetKey(), IE_Released );
|
|
}
|
|
|
|
bool FViewportInteractionInputProcessor::HandleAnalogInputEvent( FSlateApplication& SlateApp, const FAnalogInputEvent& InAnalogInputEvent )
|
|
{
|
|
return WorldInteractionManager->PreprocessedInputAxis( InAnalogInputEvent.GetUserIndex(), InAnalogInputEvent.GetKey(), InAnalogInputEvent.GetAnalogValue(), FApp::GetDeltaTime() );
|
|
}
|
|
|
|
bool FViewportInteractionInputProcessor::HandleMouseMoveEvent( FSlateApplication& SlateApp, const FPointerEvent& MouseEvent )
|
|
{
|
|
return false;
|
|
}
|
|
|