38 #include "SCoherentInputForward.h"
41 namespace ECoherentUIKeys
167 Unknown UMETA(DisplayName=
"Unknown"),
172 namespace ECoherentUIInputPropagationBehaviour
183 #include "CoherentUIInputActor.generated.h"
185 DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam(FCoherentInputActorMouseButtonDown, ECoherentUIKeys::Type, Button);
186 DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam(FCoherentInputActorMouseButtonUp, ECoherentUIKeys::Type, Button);
187 DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam(FCoherentInputActorKeyDown, ECoherentUIKeys::Type, Key);
188 DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam(FCoherentInputActorKeyUp, ECoherentUIKeys::Type, Key);
190 UCLASS(BlueprintType)
191 class COHERENTUIPLUGIN_API ACoherentUIInputActor : public AActor
193 GENERATED_UCLASS_BODY()
196 UFUNCTION(BlueprintCallable, Category = CoherentUI)
197 void Initialize(ECollisionChannel CollisionChannel = ECC_WorldDynamic, TextureAddress AddressMode = TA_Wrap, EInputWidgetRaycastQuality RaycastQuality = RQ_Accurate, int32 UVChannel = 0);
199 UFUNCTION(BlueprintCallable, Category = CoherentUI)
200 void SetCoherentUIInputFocus(
bool FocusUI);
202 UFUNCTION(BlueprintCallable, Category = CoherentUI)
203 bool IsCoherentUIFocused() const;
205 UFUNCTION(BlueprintCallable, Category = CoherentUI)
206 void ToggleCoherentUIInputFocus();
208 UFUNCTION(BlueprintCallable, Category = CoherentUI)
212 UFUNCTION(BlueprintCallable, Category = CoherentUI)
213 void AllowJoystickInputWhileUIIsFocused_DEPRECATED(
bool bAllow);
216 UFUNCTION(BlueprintCallable, Category = CoherentUI)
217 bool IsJoystickInputWhileUIIsFocusedAllowed_DEPRECATED() const;
219 UFUNCTION(BlueprintCallable, Category = CoherentUI)
220 void AlwaysAcceptMouseInput(
bool bForce);
222 UFUNCTION(BlueprintCallable, Category = CoherentUI)
223 void SetInputPropagationBehaviour(ECoherentUIInputPropagationBehaviour::Type Propagation);
225 UFUNCTION(BlueprintCallable, Category = CoherentUI)
226 ECoherentUIInputPropagationBehaviour::Type GetInputPropagationBehaviour() const;
228 UFUNCTION(BlueprintCallable, Category = CoherentUI)
229 void SetLineTraceMode(EInputWidgetLineTraceMode Mode);
231 UPROPERTY(BlueprintAssignable, Category = CoherentUI)
232 FCoherentInputActorMouseButtonDown OnCoherentInputActorMouseButtonDown;
234 UPROPERTY(BlueprintAssignable, Category = CoherentUI)
235 FCoherentInputActorMouseButtonUp OnCoherentInputActorMouseButtonUp;
237 UPROPERTY(BlueprintAssignable, Category = CoherentUI)
238 FCoherentInputActorKeyDown OnCoherentInputActorKeyDown;
240 UPROPERTY(BlueprintAssignable, Category = CoherentUI)
241 FCoherentInputActorKeyUp OnCoherentInputActorKeyUp;
243 TSharedPtr<class SCoherentInputForward> GetWidget();
246 void OnCoherentInputWidgetMouseButtonDown(const FKey& Button);
247 void OnCoherentInputWidgetMouseButtonUp(const FKey& Button);
248 void OnCoherentInputWidgetKeyDown(const FKey& Key);
249 void OnCoherentInputWidgetKeyUp(const FKey& Key);
252 TSharedPtr<class SCoherentInputForward> CoherentInputForwardWidget;
253 ECoherentUIInputPropagationBehaviour::Type InputPropagationBehaviour;
Definition: CoherentBaseComponent.h:76