So I'm currently using SendInput as a way of doing keyboard emulation. My problem is that to switch on the emulation the user has to hold down the CTRL button (client's specification :-( ).
I used GetAsyncKeyState(VK_CONTROL)
to get the state of the CTRL key, so I can work out the switch part. My problem now is that since the physical CTRL button is pressed, it is not ignored when the SendInput function is used. So instead of emulating say the c
button it emulates CTRL + c
.
I'd like to know if there is a way for SendInput to ignore physical keyboard presses.