Skip to content
Snippets Groups Projects

Adding right-click support for the widget interaction component

Merged David Gilbert requested to merge feature/right_click54 into dev/5.4
1 file
+ 2
2
Compare changes
  • Side-by-side
  • Inline
@@ -51,14 +51,14 @@ void URWTHVRWidgetInteractionComponent::SetupPlayerInput(UInputComponent* Player
@@ -51,14 +51,14 @@ void URWTHVRWidgetInteractionComponent::SetupPlayerInput(UInputComponent* Player
return;
return;
}
}
if(WidgetLeftClickInputAction)
if (WidgetLeftClickInputAction)
{
{
EI->BindAction(WidgetLeftClickInputAction, ETriggerEvent::Started, this,
EI->BindAction(WidgetLeftClickInputAction, ETriggerEvent::Started, this,
&URWTHVRWidgetInteractionComponent::OnBeginLeftClick);
&URWTHVRWidgetInteractionComponent::OnBeginLeftClick);
EI->BindAction(WidgetLeftClickInputAction, ETriggerEvent::Completed, this,
EI->BindAction(WidgetLeftClickInputAction, ETriggerEvent::Completed, this,
&URWTHVRWidgetInteractionComponent::OnEndLeftClick);
&URWTHVRWidgetInteractionComponent::OnEndLeftClick);
}
}
if(WidgetRightClickInputAction)
if (WidgetRightClickInputAction)
{
{
EI->BindAction(WidgetRightClickInputAction, ETriggerEvent::Started, this,
EI->BindAction(WidgetRightClickInputAction, ETriggerEvent::Started, this,
&URWTHVRWidgetInteractionComponent::OnBeginRightClick);
&URWTHVRWidgetInteractionComponent::OnBeginRightClick);
Loading