diff --git a/Source/RWTHVRToolkit/Private/Interaction/Interactors/DirectInteractionComponent.cpp b/Source/RWTHVRToolkit/Private/Interaction/Interactors/DirectInteractionComponent.cpp index f759b37b054195e0c8af9d1646a9c2dedd3a85ae..e0cc9af6a3a364c9bcfd0f9c2b7318d17cea7a45 100644 --- a/Source/RWTHVRToolkit/Private/Interaction/Interactors/DirectInteractionComponent.cpp +++ b/Source/RWTHVRToolkit/Private/Interaction/Interactors/DirectInteractionComponent.cpp @@ -106,10 +106,10 @@ void UDirectInteractionComponent::SetupPlayerInput(UInputComponent* PlayerInputC if (EI == nullptr) return; - EI->BindAction(InteractionInputAction, ETriggerEvent::Started, this, - &UDirectInteractionComponent::OnBeginInteractionInputAction); - EI->BindAction(InteractionInputAction, ETriggerEvent::Completed, this, - &UDirectInteractionComponent::OnEndInteractionInputAction); + // EI->BindAction(InteractionInputAction, ETriggerEvent::Started, this, + // &UDirectInteractionComponent::OnBeginInteractionInputAction); + // EI->BindAction(InteractionInputAction, ETriggerEvent::Completed, this, + // &UDirectInteractionComponent::OnEndInteractionInputAction); } void UDirectInteractionComponent::OnBeginInteractionInputAction(const FInputActionValue& Value) diff --git a/Source/RWTHVRToolkit/Public/Interaction/Interactors/DirectInteractionComponent.h b/Source/RWTHVRToolkit/Public/Interaction/Interactors/DirectInteractionComponent.h index 46d2d160358d991a70e232bce73bc6c9a57c52ef..10b62c828c32940eaae3877eab8105293b8b5642 100644 --- a/Source/RWTHVRToolkit/Public/Interaction/Interactors/DirectInteractionComponent.h +++ b/Source/RWTHVRToolkit/Public/Interaction/Interactors/DirectInteractionComponent.h @@ -28,11 +28,11 @@ public: virtual void SetupPlayerInput(UInputComponent* PlayerInputComponent) override; -private: virtual void OnBeginInteractionInputAction(const FInputActionValue& Value) override; virtual void OnEndInteractionInputAction(const FInputActionValue& Value) override; +private: UPROPERTY() TArray<UInteractableComponent*> PreviousInteractableComponentsInRange; diff --git a/Source/RWTHVRToolkit/Public/Interaction/Interactors/UBaseInteractionComponent.h b/Source/RWTHVRToolkit/Public/Interaction/Interactors/UBaseInteractionComponent.h index ca97fd7e36f1359273734f7b88da77777fdfa7b0..bb1157d263cc1cdfcb77b38139969cda17eacc5c 100644 --- a/Source/RWTHVRToolkit/Public/Interaction/Interactors/UBaseInteractionComponent.h +++ b/Source/RWTHVRToolkit/Public/Interaction/Interactors/UBaseInteractionComponent.h @@ -94,10 +94,11 @@ public: void MulticastActionBehaviourReplicationStartRpc(UActionBehaviour* Behaviour, const EInteractionEventType EventType, const FInputActionValue& Value); -private: - UFUNCTION() + UFUNCTION(BlueprintCallable) virtual void OnBeginInteractionInputAction(const FInputActionValue& Value); - UFUNCTION() + UFUNCTION(BlueprintCallable) virtual void OnEndInteractionInputAction(const FInputActionValue& Value); + +private: };