From b82a2022d66b35311dce7fb7946e5d5fbc8478c9 Mon Sep 17 00:00:00 2001 From: David Gilbert <gilbert@vr.rwth-aachen.de> Date: Wed, 19 Mar 2025 13:15:07 +0100 Subject: [PATCH] style: fixes clang format issues in pawn and utilities --- Source/RWTHVRToolkit/Private/Pawn/RWTHVRPawn.cpp | 4 ++-- Source/RWTHVRToolkit/Private/Utility/RWTHVRUtilities.cpp | 7 ++----- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/Source/RWTHVRToolkit/Private/Pawn/RWTHVRPawn.cpp b/Source/RWTHVRToolkit/Private/Pawn/RWTHVRPawn.cpp index ba4519c..96e490a 100644 --- a/Source/RWTHVRToolkit/Private/Pawn/RWTHVRPawn.cpp +++ b/Source/RWTHVRToolkit/Private/Pawn/RWTHVRPawn.cpp @@ -127,12 +127,12 @@ void ARWTHVRPawn::SetupPlayerInputComponent(UInputComponent* PlayerInputComponen // Don't do anything with the type if it's been set to clustertype or anything. // This is already being done when connecting to the server. const bool bClusterType = Type == EPlayerType::nDisplayPrimary || Type == EPlayerType::nDisplaySecondary; - + if (!bClusterType) { if (URWTHVRUtilities::IsHeadMountedMode()) Type = EPlayerType::HMD; - + UE_LOGFMT(Toolkit, Display, "Pawn: Requesting Player Type {T}...", StaticCast<int8>(Type)); // Could be too early to call this RPC... State->RequestSetPlayerType(Type); diff --git a/Source/RWTHVRToolkit/Private/Utility/RWTHVRUtilities.cpp b/Source/RWTHVRToolkit/Private/Utility/RWTHVRUtilities.cpp index 4e7403f..af8fc10 100644 --- a/Source/RWTHVRToolkit/Private/Utility/RWTHVRUtilities.cpp +++ b/Source/RWTHVRToolkit/Private/Utility/RWTHVRUtilities.cpp @@ -17,10 +17,7 @@ DEFINE_LOG_CATEGORY(Toolkit); bool URWTHVRUtilities::IsDesktopMode() { return !IsRoomMountedMode() && !IsHeadMountedMode(); } -bool URWTHVRUtilities::IsHeadMountedMode() -{ - return UHeadMountedDisplayFunctionLibrary::IsHeadMountedDisplayEnabled(); -} +bool URWTHVRUtilities::IsHeadMountedMode() { return UHeadMountedDisplayFunctionLibrary::IsHeadMountedDisplayEnabled(); } bool URWTHVRUtilities::IsRoomMountedMode() { @@ -37,7 +34,7 @@ bool URWTHVRUtilities::IsPrimaryNode() return URWTHVRClusterUtilities::IsPrimaryNode(); #else return false; -#endif +#endif } float URWTHVRUtilities::GetEyeDistance() -- GitLab