Try my new Mobile Game Development Course 75% OFF!
Easy Controller Remap!
This is an example of how to allow the player to set custom controls and save their preferences using ini to store their information. This has been tested and works on windows. This should work on any device that can use ini to save settings however I have only tested this on windows.
All code is of course commented to explain exactly whats going on in the code itself.
NOTICE This is specifically for gamepads using XINPUT (gamepad fuctions) and does not support joystick functions using the old directinput methods as they are outdated and thus not supported. That said you can use this method for joysticks as well it simply requires a little more leg work.
Need help with IAP try my Easy IAP Asset. Easy IAP