I need a procedure written in PUREBASIC to take keyboard entries and inject that into a game. In other words, a low level system wide keyboard hook.
This hook will need to work on the Battlefield series of games.
This is for peripheral design testing.
I expect the code maybe only a few lined around sendinput. My attempts at sendinput work for windows apps but not for DirectX game keyboard input with punkbuster installed.
This code needs to run on both 32-bit and 64-bit editions of Windows 8 and Windows 7.