AlinaEVE
Topic Author
Posts: 5
Joined: 06 Jul 2023, 08:49

Regarding the EnhancedInputActionTrigger

21 Aug 2023, 08:44

Hello!
Regarding the EnhancedInputActionTrigger, there have been some issues when using it locally. My ue version is 5.2 and Noesis SDK is 3.2.1.

I have created an input mapping context and input action based on the Enhanced Input Actions tutorial in UE. I have also added the corresponding code in MainWindow.xaml, and I can see that the input action has been activated according to the debug command. However, the action bound in XAML is not being executed,The Rectangle is still Blue.

I'm not sure if I missed any steps.
<Grid>
		<noesis:EnhancedInputActionTrigger Action="OpenStart" TriggerEvent="Triggered">
			<b:ChangePropertyAction TargetName="rect" PropertyName="Fill" Value="Red"/>
		</noesis:EnhancedInputActionTrigger>
		<Grid.RowDefinitions>
			<RowDefinition Height="1*"/>
			<RowDefinition Height="9*"/>
			<RowDefinition Height="1*"/>
		</Grid.RowDefinitions>
		<Grid.ColumnDefinitions>
			<ColumnDefinition Width="1*"/>
			<ColumnDefinition Width="5*"/>
			<ColumnDefinition Width="1*"/>
		</Grid.ColumnDefinitions>
		<Rectangle x:Name="rect" Fill="Blue"  />
		<local:MainMenu x:Name="Main" Grid.Row="1" Grid.Column="1"  />
		<local:StartMenu x:Name="Start" Grid.Row="1" Grid.Column="1" Visibility="Hidden" />
		<local:SettingsMenu x:Name="Settings" Grid.Row="1" Grid.Column="1"  Visibility="Hidden" />
	</Grid>
	
 
User avatar
hcpizzi
Site Admin
Posts: 368
Joined: 09 Feb 2012, 12:40

Re: Regarding the EnhancedInputActionTrigger

21 Aug 2023, 11:29

Hello,

For EnhancedInputActionTriggers the Action property is an URI that represents the path to the InputAction asset. I've attached a patch that adds logging when the InputAction is not found, which we aren't doing now. Could you use a fully qualified URI to make sure that the InputAction is found? You can use the attached patch to make sure it is.

Thanks
Attachments
EnhancedInputActionTrigger.cpp.zip
(589 Bytes) Downloaded 219 times
 
AlinaEVE
Topic Author
Posts: 5
Joined: 06 Jul 2023, 08:49

Re: Regarding the EnhancedInputActionTrigger

21 Aug 2023, 14:10

Thanks to your patch, I found the source code and realized that it wasn't being executed at all. On one hand, I forgot to add `<b:Interaction.Triggers>`... and on the other hand, there was indeed a problem with the path!
After setting breakpoints, I discovered that the path needs to start from the Game directory, but I had placed the action in the same directory as the XAML file in the assets folder, which prevented the event from being registered successfully.
Thank you !!!

Who is online

Users browsing this forum: Bing [Bot] and 3 guests