ACohtmlInputActor
Inherits from AActor
Public Functions
Name | |
---|---|
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) |
void | Initialize(ECollisionChannel CollisionChannel =ECC_WorldDynamic, TextureAddress AddressMode =TA_Wrap, ECohtmlInputWidgetRaycastQuality RaycastQuality =CohtmlRaycastQuality_Accurate, int32 UVChannel =0) |
void | SetCohtmlInputFocus(bool FocusUI) |
bool | IsCohtmlFocused() const |
void | ToggleCohtmlInputFocus() |
void | SetCohtmlViewFocus(UCohtmlBaseComponent * NewFocusedView) |
void | AlwaysAcceptMouseInput(bool bAccept) |
void | SetInputPropagationBehaviour(ECohtmlInputPropagationBehaviour::Type Propagation) |
ECohtmlInputPropagationBehaviour::Type | GetInputPropagationBehaviour() const |
void | SetLineTraceMode(ECohtmlInputWidgetLineTraceMode Mode) |
TSharedPtr< class SCohtmlInputForward > | GetWidget() |
FCohtmlGamepadBehaviourOnFocusLostDelegate & | GetGamepadBehaviourDelegate() |
void | AttachVirtualJoystick(TSharedRef< class SVirtualJoystick > Joystick) |
void | DetachVirtualJoystick() |
virtual TSharedPtr< SCohtmlInputForward > | CreateInputForwardWidget() |
Public Attributes
Name | |
---|---|
FCohtmlInputActorMouseButtonDown | OnCohtmlInputActorMouseButtonDown |
FCohtmlInputActorMouseButtonUp | OnCohtmlInputActorMouseButtonUp |
FCohtmlInputActorKeyDown | OnCohtmlInputActorKeyDown |
FCohtmlInputActorKeyUp | OnCohtmlInputActorKeyUp |
FCohtmlInputActorFocusChanged | OnCohtmlInputActorFocusChanged |
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;