Fixes the mouse snapping and stuttering that occurs when playing games in windowed mode (e.g. cursor warping to the center when it touches the window border). This fix only works for games that use DirectInput 8 (dinput8.dll) to handle mouse input.
Credits go to Laz and adoxa for the original hex-edit implementation. Additionally, thanks to elishacloud for inspiration on wrapping dinput8.dll.
Download the latest dinput8.dll file from Releases. Place the file in the same directory where the executable of the game is located. Now every time the game is launched, the fix should be automatically applied.
Build this program using your favorite compiler. MSVC is preferred due to the way that the functions have to be exported according to the .def file. Please note that when the program is compiled using a modern compiler, a system call may be propagated that is not supported on Windows XP. Therefore, if this matters to you, please consider using an older compiler. A VC6 makefile is included in this project.