From d3427f680b112dfcd32dd38b7179ec446a7c4c9a Mon Sep 17 00:00:00 2001 From: Sebastian Pape <pape@vr.rwth-aachen.de> Date: Mon, 12 Aug 2024 17:03:35 +0200 Subject: [PATCH] Fixing if case --- Source/DasherVR/Private/Dasher3DWidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/DasherVR/Private/Dasher3DWidget.cpp b/Source/DasherVR/Private/Dasher3DWidget.cpp index e7d90b6..b1373ce 100644 --- a/Source/DasherVR/Private/Dasher3DWidget.cpp +++ b/Source/DasherVR/Private/Dasher3DWidget.cpp @@ -283,7 +283,7 @@ void ADasher3DWidget::SetMouseLocation(FVector WorldLocation) void ADasher3DWidget::SimulateClick(FKey Key, bool pressed) { - if(Key == EKeys::LeftMouseButton || Key == EKeys::RightMouseButton) + if(!(Key == EKeys::LeftMouseButton || Key == EKeys::RightMouseButton)) return; if(pressed) { DasherMainInterface->KeyDown(FDateTime::Now().GetSecond() + FDateTime::Now().GetMillisecond(), (Key == EKeys::LeftMouseButton) ? Dasher::Keys::Primary_Input : Dasher::Keys::Secondary_Input); -- GitLab