A small helper-library which prevents a process from accessing a connected DualShock 4 controller
A Proof-of-Concept, nothing more, nothing less. It's a small DLL which hides the Sony DualShock 4 Controller from any Windows process it gets injected into. It accomplishes this by hooking the CreateFile
Windows API using MinHook.
- Either clone this repository and compile the library yourself or download the latest release.
- Get my DLL injector utility or use you own.
- Put Injector and DLL in the same directory (caution: only use 64-Bit injector with 64-Bit DLL on 64-Bit target process, likewise with 32-Bit builds).
- Launch your target process (the game).
- Enter command line
Injector.exe --inject --module-name HideDS4.dll --process-name witcher3.exe
to load the DLL into the game. - If the DualShock 4 is connected, re-connect it for the fix to kick in.
- Enjoy!