I am sure this has been done before, but I am looking for a refresher since I can't find any mention of it.
I am looking for a way to remap my keys with as little code as possible.
What's the best way to remap my keys/joystick buttons?
I was thinking of using strings so I could do something like:

STRING* jump = "joy_1";

if (jump ==1){player_jump;}

this would obviously try to use joy_1 as the jump button, but since I don't think I can use a string in an if statement I'm not sure of the best way to do it.
I would use a panel or ini file to remap the keys as need be, but don't want to have hundreds of if then statements inside of each other for each possible combination.
Any help would be great

thanks


Black holes are where God divided by zero.