Skip to content
Snippets Groups Projects
Commit d3427f68 authored by Sebastian Pape's avatar Sebastian Pape
Browse files

Fixing if case

parent 31d7c601
No related branches found
No related tags found
1 merge request!2Backporting many features from the study on top of the Dasher3D-Core
...@@ -283,7 +283,7 @@ void ADasher3DWidget::SetMouseLocation(FVector WorldLocation) ...@@ -283,7 +283,7 @@ void ADasher3DWidget::SetMouseLocation(FVector WorldLocation)
void ADasher3DWidget::SimulateClick(FKey Key, bool pressed) void ADasher3DWidget::SimulateClick(FKey Key, bool pressed)
{ {
if(Key == EKeys::LeftMouseButton || Key == EKeys::RightMouseButton) if(!(Key == EKeys::LeftMouseButton || Key == EKeys::RightMouseButton)) return;
if(pressed) if(pressed)
{ {
DasherMainInterface->KeyDown(FDateTime::Now().GetSecond() + FDateTime::Now().GetMillisecond(), (Key == EKeys::LeftMouseButton) ? Dasher::Keys::Primary_Input : Dasher::Keys::Secondary_Input); DasherMainInterface->KeyDown(FDateTime::Now().GetSecond() + FDateTime::Now().GetMillisecond(), (Key == EKeys::LeftMouseButton) ? Dasher::Keys::Primary_Input : Dasher::Keys::Secondary_Input);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment