CohtmlInputHelpers
Functions
Section titled “Functions”| Name | |
|---|---|
| bool | IntersectRayTriangle(const FVector & RayOrigin, const FVector & RayDirection, const FVector & V0, const FVector & V1, const FVector & V2, float & T, float & U, float & V) |
| 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) |
| void | AdjustUVCoordinates(TextureAddress AddressMode, float & U, float & V) |
| bool | HasMouseChanged(const FPointerEvent & First, const FPointerEvent & Second, cohtml::MouseEventData::EventType EventType) |
| bool | HasTouchChanged(const FPointerEvent & First, const FPointerEvent & Second, cohtml::TouchEventData::EventType EventType) |
| void | ClearViewState(cohtml::View * View, const cohtml::MouseEventData * UnpairedMouseDownEvent) |
| void | ClearViewState(cohtml::View * View, const cohtml::TouchEventData * UnpairedTouchDownEvent) |
| COHTMLPLUGIN_API cohtml::KeyEventData | MakeKeyEvent(const FInputEvent & Event, cohtml::KeyEventData::EventType Type) |
| COHTMLPLUGIN_API cohtml::MouseEventData | GetMouseDataFromFPointerEvent(const FPointerEvent & MouseEvent, cohtml::MouseEventData::EventType EventType) |
| COHTMLPLUGIN_API cohtml::TouchEventData | GetTouchDataFromFPointerEvent(const FPointerEvent & TouchEvent, cohtml::TouchEventData::EventType EventType) |
| COHTMLPLUGIN_API EMouseCursor::Type | TranslateCurrentCohtmlMouseCursor(cohtml::CursorTypes::Cursors Cursor) |
| COHTMLPLUGIN_API float | GetDPIScale(const UGameViewportClient & ViewportClient) |
| COHTMLPLUGIN_API TOptional< FSceneViewProjectionData > | GetProjectionData(const APlayerController & PlayerController) |
| COHTMLPLUGIN_API FReply | HandlePointerEventForHUDViews(UWorld * World, FVector2D & ViewportPositionVec2D, TOptional< FSceneViewProjectionData > & ProjectionData, TFunction< FReply(FVector2D &, UCohtmlBaseComponent *)> HandleHUDInputFunction) |
| 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) |
| FReply | SendCohtmlMouseEvent(cohtml::View * View, const cohtml::MouseEventData & CoherentMouseData) |
| FReply | SendCohtmlTouchEvents(cohtml::View * View, FCohtmlGesturePolicy * GesturePolicy, const cohtml::TouchEventData * CoherentTouchData, unsigned Count) |
Functions Documentation
Section titled “Functions Documentation”function IntersectRayTriangle
Section titled “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
Section titled “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
Section titled “function AdjustUVCoordinates”void AdjustUVCoordinates( TextureAddress AddressMode, float & U, float & V)function HasMouseChanged
Section titled “function HasMouseChanged”bool HasMouseChanged( const FPointerEvent & First, const FPointerEvent & Second, cohtml::MouseEventData::EventType EventType)function HasTouchChanged
Section titled “function HasTouchChanged”bool HasTouchChanged( const FPointerEvent & First, const FPointerEvent & Second, cohtml::TouchEventData::EventType EventType)function ClearViewState
Section titled “function ClearViewState”void ClearViewState( cohtml::View * View, const cohtml::MouseEventData * UnpairedMouseDownEvent)function ClearViewState
Section titled “function ClearViewState”void ClearViewState( cohtml::View * View, const cohtml::TouchEventData * UnpairedTouchDownEvent)function MakeKeyEvent
Section titled “function MakeKeyEvent”COHTMLPLUGIN_API cohtml::KeyEventData MakeKeyEvent( const FInputEvent & Event, cohtml::KeyEventData::EventType Type)function GetMouseDataFromFPointerEvent
Section titled “function GetMouseDataFromFPointerEvent”COHTMLPLUGIN_API cohtml::MouseEventData GetMouseDataFromFPointerEvent( const FPointerEvent & MouseEvent, cohtml::MouseEventData::EventType EventType)function GetTouchDataFromFPointerEvent
Section titled “function GetTouchDataFromFPointerEvent”COHTMLPLUGIN_API cohtml::TouchEventData GetTouchDataFromFPointerEvent( const FPointerEvent & TouchEvent, cohtml::TouchEventData::EventType EventType)function TranslateCurrentCohtmlMouseCursor
Section titled “function TranslateCurrentCohtmlMouseCursor”COHTMLPLUGIN_API EMouseCursor::Type TranslateCurrentCohtmlMouseCursor( cohtml::CursorTypes::Cursors Cursor)function GetDPIScale
Section titled “function GetDPIScale”COHTMLPLUGIN_API float GetDPIScale( const UGameViewportClient & ViewportClient)function GetProjectionData
Section titled “function GetProjectionData”COHTMLPLUGIN_API TOptional< FSceneViewProjectionData > GetProjectionData( const APlayerController & PlayerController)function HandlePointerEventForHUDViews
Section titled “function HandlePointerEventForHUDViews”COHTMLPLUGIN_API FReply HandlePointerEventForHUDViews( UWorld * World, FVector2D & ViewportPositionVec2D, TOptional< FSceneViewProjectionData > & ProjectionData, TFunction< FReply(FVector2D &, UCohtmlBaseComponent *)> HandleHUDInputFunction)function HandlePointerEventForInWorldViews
Section titled “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 SendCohtmlMouseEvent
Section titled “function SendCohtmlMouseEvent”FReply SendCohtmlMouseEvent( cohtml::View * View, const cohtml::MouseEventData & CoherentMouseData)function SendCohtmlTouchEvents
Section titled “function SendCohtmlTouchEvents”FReply SendCohtmlTouchEvents( cohtml::View * View, FCohtmlGesturePolicy * GesturePolicy, const cohtml::TouchEventData * CoherentTouchData, unsigned Count)© 2026 Coherent Labs. All rights reserved.