Who has never played Rayman2 on PC and has didn't wanted to change the keyboard controls? Some videogames (especially old ones) did not allow remap the keymap in any way, and it's not always easy to hack them to change controls. The aforementioned video game never saw a way to change the keyboard controls... before...
Please check the 2024 Hook Version folder for a new dll hook implementation of this tool using .txt files for mappings
With this application you can generate a "hacked" Dinput.dll that you only have to copy to the directory where you have your game EXE, and it will change your keyboard controls.
This program injects customized assembly code into a special DINPUT.DLL/DINPUT8.DLL file.
Copying this .DLL file into the EXE directory makes the executable use this DLL instead of the default C:\Windows... DirectInput DLL.
DINPUT.DLL and DINPUT8.DLL are property of Microsoft.
You can freely use the source and tool, but must contact me if you want to edit and/or distribute.
//
// DINPUT_key_switcher by Juanmv94 //
// May,2017 //
// If you want to use this source code please leave me a comment at
// https://tragicomedy-hellin.blogspot.com.es/2017/05/dinput-key-switcher-personaliza-el.html
//
Full blog article: http://tragicomedy-hellin.blogspot.com/2017/05/dinput-key-switcher-personaliza-el.html