So far I've been capable of using SendInput() function to simulate mouse and keyboard virtual keys and scan keys using MOUSEINPUT
and KEYBDINPUT
.
I read (on S.O) that INPUT_HARDWARE
is for other devices rather than the mouse or keyboard. I'm trying to simulate an Xbox controller (or any controller, if that might help) input using SendInput()
and the HARDWAREINPUT structure. Is it possible to do so? How to do it properly?