Enhanced Input Cashed Only Trigger Last Action In Chord

Open Project Settings. Go to Enhanced Input label. Try to modify the toggle named 'Should Only Trigger Last Action In Chord '. It will cause a crash. Because of the ‘array out of range’.

Well, I found u guys just missed a field in the UPROPERTY macro, as shown below.

By the way, this config is useless up to now. ‘ShouldOnlyTriggerLastActionInChord’ has a hard code value.

namespace UE
{
	namespace Input
	{
		static int32 ShouldOnlyTriggerLastActionInChord = 1;   // Hard Code. Not read from the project settings config.
		static FAutoConsoleVariableRef CVarShouldOnlyTriggerLastActionInChord(TEXT("EnhancedInput.OnlyTriggerLastActionInChord"),
			ShouldOnlyTriggerLastActionInChord,
			TEXT("Should only the last action in a ChordedAction trigger be fired? If this is disabled, then the dependant chords will be fired as well"));
	}
}

Hi there @RyuginStudio. Hope you’re well!

This topic has been moved from International to Programming & Scripting: C++.

When posting, please review the categories to ensure your topic is posted in the most relevant space.

Thanks and happy developing! :slight_smile:

Hello @RyuginStudio. I am wondering how you fixed it, as I did go to that file and changed the code to what it is for you. Unfortunately it didn’t fix it, instead, the problem persisted. If you’re wondering, I am on UE5.1.1. Thank you and I look forward to your reply.

1 Like