Preparing for a second jump (Swipe Controls)

Here’s a fun one I’ve been trying to decipher. On some endless runner games such as Subway Surfers, you swipe up to jump, but if you are to swipe up when already in the air and about to fall, the game seems to then jump again after touching the ground without an additional swipe from the player. So it seems to prepare a second jump if you swipe to early.

I’m not sure if this is intentional or not in the game, but l am trying to replicate it in mine. Honestly don’t know where to start, any ideas are much appreciated.

This is a simplified version of what you’re looking for:
Essentially if the player is in the air and does the jump input, just flip a boolean and then act upon it with the “On Landed” event.

This is good, but how would l know when hasLanded?