Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
RWTH VR Toolkit
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LuFG VR VIS
VR-Group
Unreal-Development
Plugins
RWTH VR Toolkit
Merge requests
!85
UE5.3-2023.1-rc3
Code
Review changes
Check out branch
Download
Patches
Plain diff
Expand sidebar
Merged
UE5.3-2023.1-rc3
dev/5.3
into
5.3
Overview
0
Commits
72
Pipelines
41
Changes
1
Merged
David Gilbert
requested to merge
dev/5.3
into
5.3
1 year ago
Overview
0
Commits
72
Pipelines
41
Changes
1
Changelog
General
:
Plugin Separation: Move Cluster module to its own Plugin
Clean up dependencies
Android (Quest) support
Interaction
IntenSelect: Allow more than one ScoringBehaviour attached to IntenSelectable
InputActions: Do not consume inputs per default
0
0
Merge request reports
Viewing commit
7baa5054
Prev
Next
Show latest version
1 file
+
7
−
17
Side-by-side
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
7baa5054
Hotfix: Adds workaround for IntenSelect crashing multiplayer.
· 7baa5054
David Gilbert
authored
1 year ago
Source/RWTHVRToolkit/Private/Pawn/IntenSelectComponent.cpp
+
7
−
17
View file @ 7baa5054
Edit in single-file editor
Open in Web IDE
Show full file
@@ -85,31 +85,21 @@ void UIntenSelectComponent::BeginPlay()
@@ -85,31 +85,21 @@ void UIntenSelectComponent::BeginPlay()
void
UIntenSelectComponent
::
InitInputBindings
()
void
UIntenSelectComponent
::
InitInputBindings
()
{
{
const
APlayerController
*
PC
=
UGameplayStatics
::
GetPlayerController
(
GetWorld
(),
0
);
const
APawn
*
Pawn
=
Cast
<
APawn
>
(
GetOwner
());
if
(
!
Pawn
)
UEnhancedInputLocalPlayerSubsystem
*
Subsystem
=
return
;
ULocalPlayer
::
GetSubsystem
<
UEnhancedInputLocalPlayerSubsystem
>
(
PC
->
GetLocalPlayer
());
UEnhancedInputComponent
*
EI
=
Cast
<
UEnhancedInputComponent
>
(
Pawn
->
InputComponent
);
UInputComponent
*
PlayerInputComponent
=
PC
->
InputComponent
;
UEnhancedInputComponent
*
PEI
=
Cast
<
UEnhancedInputComponent
>
(
PlayerInputComponent
);
if
(
!
P
EI
)
if
(
!
EI
)
{
{
const
FString
Message
=
"Could not get PlayerInputComponent for IntenSelect Input Assignment!"
;
const
FString
Message
=
"Could not get PlayerInputComponent for IntenSelect Input Assignment!"
;
#if WITH_EDITOR
const
FText
Title
=
FText
::
FromString
(
FString
(
"ERROR"
));
FMessageDialog
::
Open
(
EAppMsgType
::
Ok
,
FText
::
FromString
(
Message
),
Title
);
#endif
UE_LOG
(
LogTemp
,
Error
,
TEXT
(
"%s"
),
*
Message
)
UE_LOG
(
LogTemp
,
Error
,
TEXT
(
"%s"
),
*
Message
)
UKismetSystemLibrary
::
QuitGame
(
this
,
nullptr
,
EQuitPreference
::
Quit
,
false
);
return
;
return
;
}
}
// Bind the actions
// Bind the actions
P
EI
->
BindAction
(
InputClick
,
ETriggerEvent
::
Started
,
this
,
&
UIntenSelectComponent
::
OnFireDown
);
EI
->
BindAction
(
InputClick
,
ETriggerEvent
::
Started
,
this
,
&
UIntenSelectComponent
::
OnFireDown
);
P
EI
->
BindAction
(
InputClick
,
ETriggerEvent
::
Completed
,
this
,
&
UIntenSelectComponent
::
OnFireUp
);
EI
->
BindAction
(
InputClick
,
ETriggerEvent
::
Completed
,
this
,
&
UIntenSelectComponent
::
OnFireUp
);
}
}
void
UIntenSelectComponent
::
InitSplineComponent
()
void
UIntenSelectComponent
::
InitSplineComponent
()
Loading