Are there any open-source custom controls out there? Basically, you can set your controls and keys by pressing Control+Y but it doesn't look that good.

I hear Logan Ames made something but I cannot find it anymore.

I need some code to let the user configure up to four gamepads or keys.

I already have gamepad objects but don't know how to use it.