Keyboard configuration (solved)

Hi. I've run into another problem yet again. Everything was going ok until I tried to play my game as a normal player rather than a developer. Right now, the M key lets you look at the Map, the L keys lets you use the lighter, the C key lets you crouch and I opens the inventory. Apart from M and L all the others are pretty far apart. I wanted to let the player assign keys to these functions to help them play the game better.

I looked ay Yanfly's keyboard config. It does not fit my needs sadly. It lets you add the basic things (ok, cancel, arrows keys) to other keys.

Does anyone know how to get the keycode of the last pressed key into a variable? I searcjed a lot. Didnt get any results.
If you combine Keyboard Config with Button Common Events you should be able to add new functionalities and also let the player remap them to other keys.

Otherwise, it becomes a somewhat tedious issue, because there's nothing remembering the "last" button pressed- you'd have to set something up to react to the keypress events and store them yourself.
Well my common events are a bit different for each map. So I'll have to see on which map the player is and stuff... kinda long for a commin event. But alright, I'll see if that works...



Edit: @Doktor_Q Thanks. When I add common events to the parameters, they appear in the options. Well that takes care of my problem.

Thread can be closed.

Original thread: https://forums.rpgmakerweb.com/threads/keyboard-configuration-solved.112003/