How to create a directional dodge vs stationary

I’m currently working on an aerial dodge mechanic inspired by Kingdom Hearts 2’s. If the left stick isn’t moved, the dodge sends you vertically, but when you move the left stick it will launch the player in that direction. How do I detect whether or not the left stick axis is being pressed so I can set up an if statement when the character hits the dodge button?

Here’s what the dodge looks like in KH2 in case my explanation wasn’t clear:


stationary


moving

Determined different actions when “Dodge” input is down.
Do you want to account for character’s accumulated speed or just by current input? Do your function(s) with these variables.


Using EnhancedInput as input example.
image

It’s just input I’m looking to use, I’m also using C++ not blueprint

You can modify the inputs in C++.

The concept is to make 2 inputs with the same button and different modifier. It is easier to detect stationary. Directional input you will need to convert input values according to your player control setup.