Just did an update on RInput as some sequential (single threaded) games were suffering from performance issues in combination with Rinput. Because the win32 dynamic library system depends on the process affinity it would’ve been quite dirty to set the process affinity inside the DLL. For anyone who was experiencing this issue, here is the single threaded version (with some minor performance improvements).
C/C++, Gaming, Programming and Scripting, win32
cpi, direct input, dpi, high sensitivity, input, low level, mouse accel, negative acceleration, raw input
After posting some information about calling an exported function from a previously injected dynamic link library, I decided to release my DLL injection class for C++. The class only uses low level win32 API calls.
Click here for the source file and click here for the header file. In case you would like to see a test project click here for a rar package.
This class is written and tested in Windows XP. You need at least Windows 2000 to use this class. In order to check if the system meets the operating system requirements you might use the GetVersion/GetVersionEx function from the win32 API.
The class is released under BSD license. In case you like it or experience problems please leave me a comment.
C/C++, Programming and Scripting, win32
bsd, c++, class, code injection, dll, header file, inject, Injection, library, low level, source file, win32
RInput allows you to override low definition windows mouse input (accurate untill 400cpi) with high definition mouse input (raw input, which is more accurate for high cpi mice). This is certainly useful for games like Wolfenstein – Enemy Territory as the engine only supports low definition windows mouse input.
Advantages
- Prevents negative acceleration.
- More accurate.
- Bypass windows mouse settings (1:1, Low Level).
- Less overhead than Direct Input.
Read the included readme to find out how to use it!
note: you need winrar to extract the file package.
Download it here.
C/C++, Gaming, Programming and Scripting, win32
cpi, direct input, dpi, high sensitivity, input, low level, mouse accel, negative acceleration, raw input