@@ -20,8 +20,8 @@ DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam(FInteractableSelected, const TScript
2020DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam (FInteractableFound, const TScriptInterface<IActorInteractableInterface>&, FoundInteractable);
2121DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam (FInteractableLost, const TScriptInterface<IActorInteractableInterface>&, LostInteractable);
2222
23- DECLARE_DYNAMIC_MULTICAST_DELEGATE_TwoParams (FInteractionKeyPressed, const float &, TimeKeyPressed, const FKey& , PressedKey);
24- DECLARE_DYNAMIC_MULTICAST_DELEGATE_TwoParams (FInteractionKeyReleased, const float &, TimeKeyReleased, const FKey& , ReleasedKey);
23+ DECLARE_DYNAMIC_MULTICAST_DELEGATE_TwoParams (FInteractionKeyPressed, const float &, TimeKeyPressed, FKey, PressedKey);
24+ DECLARE_DYNAMIC_MULTICAST_DELEGATE_TwoParams (FInteractionKeyReleased, const float &, TimeKeyReleased, FKey, ReleasedKey);
2525
2626DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam (FIgnoredActorAdded, const AActor*, AddedActor);
2727DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam (FIgnoredActorRemoved, const AActor*, RemovedActor);
@@ -80,7 +80,7 @@ class ACTORINTERACTIONPLUGIN_API IActorInteractorInterface
8080 * @param PressedKey Key which was pressed
8181 */
8282 UFUNCTION (BlueprintNativeEvent, BlueprintCallable, Category=" Interaction" )
83- void OnInteractionKeyPressedEvent (const float & TimeKeyPressed, const FKey& PressedKey);
83+ void OnInteractionKeyPressedEvent (const float & TimeKeyPressed, FKey PressedKey);
8484 void OnInteractionKeyPressedEvent_Implementation (const float & TimeKeyPressed, const FKey& PressedKey)
8585 {
8686 StartInteraction (TimeKeyPressed, PressedKey);
@@ -95,7 +95,7 @@ class ACTORINTERACTIONPLUGIN_API IActorInteractorInterface
9595 * @param ReleasedKey Key which was released
9696 */
9797 UFUNCTION (BlueprintNativeEvent, BlueprintCallable, Category=" Interaction" )
98- void OnInteractionKeyReleasedEvent (const float & TimeKeyReleased, const FKey& ReleasedKey);
98+ void OnInteractionKeyReleasedEvent (const float & TimeKeyReleased, FKey ReleasedKey);
9999 void OnInteractionKeyReleasedEvent_Implementation (const float & TimeKeyReleased, const FKey& ReleasedKey)
100100 {
101101 StopInteraction (TimeKeyReleased, ReleasedKey);
@@ -158,8 +158,8 @@ class ACTORINTERACTIONPLUGIN_API IActorInteractorInterface
158158
159159 virtual bool IsValidInteractor () const = 0;
160160
161- virtual void StartInteraction (const float StartTime, const FKey& InputKey) = 0;
162- virtual void StopInteraction (const float StartTime, const FKey& InputKey) = 0;
161+ virtual void StartInteraction (const float StartTime, FKey InputKey) = 0;
162+ virtual void StopInteraction (const float StartTime, FKey InputKey) = 0;
163163
164164 virtual bool ActivateInteractor (FString& ErrorMessage) = 0;
165165 virtual bool WakeUpInteractor (FString& ErrorMessage) = 0;
0 commit comments