Configurable input controlls

Hi Guys,

I am trying to find if you can make, like a configurable input for Player 1, 2 etc.
When they go to settings, and then config controls, and it lets them configure the controls as they like,
for example “press left…right…up…down…a…b” ?

Does anyone know or have an example of something similar?

Thank you!

Maybe this will help to get the idea GDevelop 5, but what i don’t know is how to get the lastpressed button when using Controller, maybe some advanced user knows

Will try, thank you!