|
Depends on how you want to handle the key presses. Do you just want it to handle whenever a key is pressed in general or do you want it to block the key from happening in game as well?
If you just want to use the keybind whenever, just use something like GetAsyncKeyState to query for key presses.
If you want to block the key from hitting the game as well, then you are going to need to hook DirectInput, or whichever input handling API the game uses.
|