ACohtmlInputActor

Inherits from AActor

Public Functions

Name
voidSetupInput(UCohtmlBaseComponent * CohtmlHUD =nullptr, ECollisionChannel CollisionChannel =ECC_WorldDynamic, TextureAddress AddressMode =TA_Wrap, ECohtmlInputWidgetRaycastQuality RaycastQuality =CohtmlRaycastQuality_Accurate, int32 UVChannel =0, bool bFocusUI =true, bool bAlwaysAcceptMouseInput =true)
voidInitialize(ECollisionChannel CollisionChannel =ECC_WorldDynamic, TextureAddress AddressMode =TA_Wrap, ECohtmlInputWidgetRaycastQuality RaycastQuality =CohtmlRaycastQuality_Accurate, int32 UVChannel =0)
voidSetCohtmlInputFocus(bool FocusUI)
boolIsCohtmlFocused() const
voidToggleCohtmlInputFocus()
voidSetCohtmlViewFocus(UCohtmlBaseComponent * NewFocusedView)
voidAlwaysAcceptMouseInput(bool bAccept)
voidSetInputPropagationBehaviour(ECohtmlInputPropagationBehaviour::Type Propagation)
ECohtmlInputPropagationBehaviour::TypeGetInputPropagationBehaviour() const
voidSetLineTraceMode(ECohtmlInputWidgetLineTraceMode Mode)
TSharedPtr< class SCohtmlInputForward >GetWidget()
FCohtmlGamepadBehaviourOnFocusLostDelegate &GetGamepadBehaviourDelegate()
voidAttachVirtualJoystick(TSharedRef< class SVirtualJoystick > Joystick)
voidDetachVirtualJoystick()
virtual TSharedPtr< SCohtmlInputForward >CreateInputForwardWidget()

Public Attributes

Name
FCohtmlInputActorMouseButtonDownOnCohtmlInputActorMouseButtonDown
FCohtmlInputActorMouseButtonUpOnCohtmlInputActorMouseButtonUp
FCohtmlInputActorKeyDownOnCohtmlInputActorKeyDown
FCohtmlInputActorKeyUpOnCohtmlInputActorKeyUp
FCohtmlInputActorFocusChangedOnCohtmlInputActorFocusChanged

Public Functions Documentation

function SetupInput

void SetupInput(
    UCohtmlBaseComponent * CohtmlHUD =nullptr,
    ECollisionChannel CollisionChannel =ECC_WorldDynamic,
    TextureAddress AddressMode =TA_Wrap,
    ECohtmlInputWidgetRaycastQuality RaycastQuality =CohtmlRaycastQuality_Accurate,
    int32 UVChannel =0,
    bool bFocusUI =true,
    bool bAlwaysAcceptMouseInput =true
)

function Initialize

void Initialize(
    ECollisionChannel CollisionChannel =ECC_WorldDynamic,
    TextureAddress AddressMode =TA_Wrap,
    ECohtmlInputWidgetRaycastQuality RaycastQuality =CohtmlRaycastQuality_Accurate,
    int32 UVChannel =0
)

function SetCohtmlInputFocus

void SetCohtmlInputFocus(
    bool FocusUI
)

function IsCohtmlFocused

bool IsCohtmlFocused() const

function ToggleCohtmlInputFocus

void ToggleCohtmlInputFocus()

function SetCohtmlViewFocus

void SetCohtmlViewFocus(
    UCohtmlBaseComponent * NewFocusedView
)

function AlwaysAcceptMouseInput

void AlwaysAcceptMouseInput(
    bool bAccept
)

function SetInputPropagationBehaviour

void SetInputPropagationBehaviour(
    ECohtmlInputPropagationBehaviour::Type Propagation
)

function GetInputPropagationBehaviour

ECohtmlInputPropagationBehaviour::Type GetInputPropagationBehaviour() const

function SetLineTraceMode

void SetLineTraceMode(
    ECohtmlInputWidgetLineTraceMode Mode
)

function GetWidget

TSharedPtr< class SCohtmlInputForward > GetWidget()

function GetGamepadBehaviourDelegate

FCohtmlGamepadBehaviourOnFocusLostDelegate & GetGamepadBehaviourDelegate()

function AttachVirtualJoystick

void AttachVirtualJoystick(
    TSharedRef< class SVirtualJoystick > Joystick
)

function DetachVirtualJoystick

void DetachVirtualJoystick()

function CreateInputForwardWidget

virtual TSharedPtr< SCohtmlInputForward > CreateInputForwardWidget()

Public Attributes Documentation

variable OnCohtmlInputActorMouseButtonDown

FCohtmlInputActorMouseButtonDown OnCohtmlInputActorMouseButtonDown;

variable OnCohtmlInputActorMouseButtonUp

FCohtmlInputActorMouseButtonUp OnCohtmlInputActorMouseButtonUp;

variable OnCohtmlInputActorKeyDown

FCohtmlInputActorKeyDown OnCohtmlInputActorKeyDown;

variable OnCohtmlInputActorKeyUp

FCohtmlInputActorKeyUp OnCohtmlInputActorKeyUp;

variable OnCohtmlInputActorFocusChanged

FCohtmlInputActorFocusChanged OnCohtmlInputActorFocusChanged;