MV How do I map controller buttons?

I use Yanfly Engine Plugins and I can map keyboard buttons to game actions and common events, but how do I map XBox controller buttons? I found the plugin by Yanfly for controller mapping in the dlc directory but it seems buggy (joystick stops working, controls freeze, etc.) and doesn't allow me to map common events. And I don't need the player to be able to remap buttons, I just need to specify what each button on the controller does by default.
You can try these


Thank you AquaEcho, that Hakuen plugin did the job

Original thread: https://forums.rpgmakerweb.com/threads/how-do-i-map-controller-buttons.166340/