Since I know abort for a while now I'm happy to support his coding by adding it to my page hope it will work out for you, have fun with what he made.
DInput is written to change the use of Windows API coordinates (in games or applications) to Direct Input coordinates.
Direct Input has got the following advantages compared to Windows API coordinates:
Default supported games:
Make sure to read the readme to get it working.
+ Those games are untested but should be working if they use win32 mouse coordinates. If it doesn't work just add your own profile (instructions are in the readme).
Written in C++ by abort (c) 2008