You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
78 lines
1.4 KiB
C++
78 lines
1.4 KiB
C++
|
|
// Copyright 1998-2019 Epic Games, Inc. All Rights Reserved.
|
||
|
|
|
||
|
|
|
||
|
|
#include "InputBehavior.h"
|
||
|
|
|
||
|
|
|
||
|
|
bool operator<(const FInputCaptureRequest& l, const FInputCaptureRequest& r)
|
||
|
|
{
|
||
|
|
if (l.Source->GetPriority() == r.Source->GetPriority())
|
||
|
|
{
|
||
|
|
return l.HitDepth < r.HitDepth;
|
||
|
|
}
|
||
|
|
else
|
||
|
|
{
|
||
|
|
return l.Source->GetPriority() < r.Source->GetPriority();
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
UInputBehavior::UInputBehavior()
|
||
|
|
{
|
||
|
|
DefaultPriority = FInputCapturePriority(100);
|
||
|
|
}
|
||
|
|
|
||
|
|
FInputCapturePriority UInputBehavior::GetPriority()
|
||
|
|
{
|
||
|
|
return DefaultPriority;
|
||
|
|
}
|
||
|
|
|
||
|
|
void UInputBehavior::SetDefaultPriority(const FInputCapturePriority& Priority)
|
||
|
|
{
|
||
|
|
DefaultPriority = Priority;
|
||
|
|
}
|
||
|
|
|
||
|
|
EInputDevices UInputBehavior::GetSupportedDevices()
|
||
|
|
{
|
||
|
|
return EInputDevices::Mouse;
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
FInputCaptureRequest UInputBehavior::WantsCapture(const FInputDeviceState& input)
|
||
|
|
{
|
||
|
|
return FInputCaptureRequest::Ignore();
|
||
|
|
}
|
||
|
|
|
||
|
|
FInputCaptureUpdate UInputBehavior::BeginCapture(const FInputDeviceState& input, EInputCaptureSide eSide)
|
||
|
|
{
|
||
|
|
return FInputCaptureUpdate::Ignore();
|
||
|
|
}
|
||
|
|
|
||
|
|
FInputCaptureUpdate UInputBehavior::UpdateCapture(const FInputDeviceState& input, const FInputCaptureData& data)
|
||
|
|
{
|
||
|
|
return FInputCaptureUpdate::End();
|
||
|
|
}
|
||
|
|
|
||
|
|
void UInputBehavior::ForceEndCapture(const FInputCaptureData& data)
|
||
|
|
{
|
||
|
|
return;
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
bool UInputBehavior::WantsHoverEvents()
|
||
|
|
{
|
||
|
|
return false;
|
||
|
|
}
|
||
|
|
|
||
|
|
void UInputBehavior::UpdateHover(const FInputDeviceState& input)
|
||
|
|
{
|
||
|
|
return;
|
||
|
|
}
|
||
|
|
|
||
|
|
void UInputBehavior::EndHover(const FInputDeviceState& input)
|
||
|
|
{
|
||
|
|
return;
|
||
|
|
}
|
||
|
|
|