Enhanced input and WasInputKeyJustPressed

PC has function which returns true if the given key/button was up last frame and down this frame.
bool APlayerController::WasInputKeyJustPressed(const FKey Key) const

How to use this or similar function for EnhancedInput ?

In Unreal Engine, the Enhanced Input system allows for more flexible and powerful input mappings and handling. To use a similar function like WasInputKeyJustPressed with the Enhanced Input system, you’ll need to set up input actions and bind them to your player controller or pawn.

After you have completed the setup of the Enhanced Input system and added/configured a Input Action to it. This is how you would bind the action to a function.

EnhancedInputComponent->BindAction(JumpAction, ETriggerEvent::Triggered, this, &AMyPlayerController::HandleJumpAction);

Hope that helps, :wink: