CohtmlInputHelpers

Functions

Name
boolIntersectRayTriangle(const FVector & RayOrigin, const FVector & RayDirection, const FVector & V0, const FVector & V1, const FVector & V2, float & T, float & U, float & V)
boolIntersectWithRay(const FVector & RayOriginModelSpace, const FVector & RayDirectionModelSpace, const TArray< FCohtmlVertexUV > & UVs, const TArray< FVector > & PositionBuffer, const FIndexArrayView & IndexBuffer, const uint32 UVChannel, float & OutDist, FVector2D & OutUV)
voidAdjustUVCoordinates(TextureAddress AddressMode, float & U, float & V)
boolIsCapsLockOn()
boolIsNumLockOn()
boolHasMouseChanged(const FPointerEvent & First, const FPointerEvent & Second, cohtml::MouseEventData::EventType EventType)
boolHasTouchChanged(const FPointerEvent & First, const FPointerEvent & Second, cohtml::TouchEventData::EventType EventType)
voidClearViewState(cohtml::View * View, const cohtml::MouseEventData * UnpairedMouseDownEvent)
voidClearViewState(cohtml::View * View, const cohtml::TouchEventData * UnpairedTouchDownEvent)
COHTMLPLUGIN_API cohtml::KeyEventDataMakeKeyEvent(const FInputEvent & Event, cohtml::KeyEventData::EventType Type)
COHTMLPLUGIN_API cohtml::MouseEventDataGetMouseDataFromFPointerEvent(const FPointerEvent & MouseEvent, cohtml::MouseEventData::EventType EventType)
COHTMLPLUGIN_API cohtml::TouchEventDataGetTouchDataFromFPointerEvent(const FPointerEvent & TouchEvent, cohtml::TouchEventData::EventType EventType)
COHTMLPLUGIN_API EMouseCursor::TypeTranslateCurrentCohtmlMouseCursor(cohtml::CursorTypes::Cursors Cursor)
COHTMLPLUGIN_API floatGetDPIScale(const UGameViewportClient & ViewportClient)
COHTMLPLUGIN_API TOptional< FSceneViewProjectionData >GetProjectionData(const APlayerController & PlayerController)
COHTMLPLUGIN_API FReplyHandlePointerEventForHUDViews(UWorld * World, FVector2D & ViewportPositionVec2D, TOptional< FSceneViewProjectionData > & ProjectionData, TFunction< FReply(FVector2D &, UCohtmlBaseComponent *)> HandleHUDInputFunction)
COHTMLPLUGIN_API FReplyHandlePointerEventForInWorldViews(const FCohtmlInputWorldData & WorldData, FVector2D & ViewportPositionVec2D, TOptional< FSceneViewProjectionData > & ProjectionData, const FCohtmlInputRaycastParams & RaycastParams, const TFunctionRef< FReply(void)> DiscardViewFocusFunction, const TFunctionRef< FReply(void)> HandledInputFunction, const TFunctionRef< FReply(UCohtmlBaseComponent *, COHERENT_FLOAT_FVECTOR2 &)> HandleInWorldInputFunction)
COHTMLPLUGIN_API boolHandleHUDInputFunction(FVector2D & ConstrainedPos, UCohtmlBaseComponent * Component, cohtml::View * View)
FReplySendCohtmlMouseEvent(cohtml::View * View, const cohtml::MouseEventData & CoherentMouseData)
FReplySendCohtmlTouchEvent(cohtml::View * View, const cohtml::TouchEventData & CoherentTouchData, class FCohtmlGesturePolicy * GesturePolicy)

Functions Documentation

function IntersectRayTriangle

bool IntersectRayTriangle(
    const FVector & RayOrigin,
    const FVector & RayDirection,
    const FVector & V0,
    const FVector & V1,
    const FVector & V2,
    float & T,
    float & U,
    float & V
)

function IntersectWithRay

bool IntersectWithRay(
    const FVector & RayOriginModelSpace,
    const FVector & RayDirectionModelSpace,
    const TArray< FCohtmlVertexUV > & UVs,
    const TArray< FVector > & PositionBuffer,
    const FIndexArrayView & IndexBuffer,
    const uint32 UVChannel,
    float & OutDist,
    FVector2D & OutUV
)

function AdjustUVCoordinates

void AdjustUVCoordinates(
    TextureAddress AddressMode,
    float & U,
    float & V
)

function IsCapsLockOn

bool IsCapsLockOn()

function IsNumLockOn

bool IsNumLockOn()

function HasMouseChanged

bool HasMouseChanged(
    const FPointerEvent & First,
    const FPointerEvent & Second,
    cohtml::MouseEventData::EventType EventType
)

function HasTouchChanged

bool HasTouchChanged(
    const FPointerEvent & First,
    const FPointerEvent & Second,
    cohtml::TouchEventData::EventType EventType
)

function ClearViewState

void ClearViewState(
    cohtml::View * View,
    const cohtml::MouseEventData * UnpairedMouseDownEvent
)

function ClearViewState

void ClearViewState(
    cohtml::View * View,
    const cohtml::TouchEventData * UnpairedTouchDownEvent
)

function MakeKeyEvent

COHTMLPLUGIN_API cohtml::KeyEventData MakeKeyEvent(
    const FInputEvent & Event,
    cohtml::KeyEventData::EventType Type
)

function GetMouseDataFromFPointerEvent

COHTMLPLUGIN_API cohtml::MouseEventData GetMouseDataFromFPointerEvent(
    const FPointerEvent & MouseEvent,
    cohtml::MouseEventData::EventType EventType
)

function GetTouchDataFromFPointerEvent

COHTMLPLUGIN_API cohtml::TouchEventData GetTouchDataFromFPointerEvent(
    const FPointerEvent & TouchEvent,
    cohtml::TouchEventData::EventType EventType
)

function TranslateCurrentCohtmlMouseCursor

COHTMLPLUGIN_API EMouseCursor::Type TranslateCurrentCohtmlMouseCursor(
    cohtml::CursorTypes::Cursors Cursor
)

function GetDPIScale

COHTMLPLUGIN_API float GetDPIScale(
    const UGameViewportClient & ViewportClient
)

function GetProjectionData

COHTMLPLUGIN_API TOptional< FSceneViewProjectionData > GetProjectionData(
    const APlayerController & PlayerController
)

function HandlePointerEventForHUDViews

COHTMLPLUGIN_API FReply HandlePointerEventForHUDViews(
    UWorld * World,
    FVector2D & ViewportPositionVec2D,
    TOptional< FSceneViewProjectionData > & ProjectionData,
    TFunction< FReply(FVector2D &, UCohtmlBaseComponent *)> HandleHUDInputFunction
)

function HandlePointerEventForInWorldViews

COHTMLPLUGIN_API FReply HandlePointerEventForInWorldViews(
    const FCohtmlInputWorldData & WorldData,
    FVector2D & ViewportPositionVec2D,
    TOptional< FSceneViewProjectionData > & ProjectionData,
    const FCohtmlInputRaycastParams & RaycastParams,
    const TFunctionRef< FReply(void)> DiscardViewFocusFunction,
    const TFunctionRef< FReply(void)> HandledInputFunction,
    const TFunctionRef< FReply(UCohtmlBaseComponent *, COHERENT_FLOAT_FVECTOR2 &)> HandleInWorldInputFunction
)

function HandleHUDInputFunction

COHTMLPLUGIN_API bool HandleHUDInputFunction(
    FVector2D & ConstrainedPos,
    UCohtmlBaseComponent * Component,
    cohtml::View * View
)

function SendCohtmlMouseEvent

FReply SendCohtmlMouseEvent(
    cohtml::View * View,
    const cohtml::MouseEventData & CoherentMouseData
)

function SendCohtmlTouchEvent

FReply SendCohtmlTouchEvent(
    cohtml::View * View,
    const cohtml::TouchEventData & CoherentTouchData,
    class FCohtmlGesturePolicy * GesturePolicy
)