This is a very simple example of how to use DirectInput 8 to hook into an application. Also included are a couple utilities for making life easier once you're there.
All contents of this repo are public domain.
This was made to (hopefully) help out a friend. Their use case likely includes writing out to seemingly random memory locations, to hopefully make their life easier I have included some small functions in memory.hpp for doing just that.
If you're interested in hooking into DirectInput, their is a reasonable chance you're also interested in vtable hooking. The function hook_vtable is included to aid anyone seeking to do this.
Also included is a primitive example on how to use hook_vtable to tap into Direct3DDevice9::Present calls.