How to use INPUT_HARDWARE in SendInput to simulate the input of an XBox controller?

So far, I could use the SendInput ( ) function to simulate virtual mouse and keyboard keys and scan keys using MOUSEINPUT and KEYBDINPUT .

I read (on SO) that INPUT_HARDWARE is for other devices, not a mouse or keyboard . I am trying to simulate an Xbox controller (or any controller if this can help) using SendInput() and the HARDWAREINPUT structure. Can this be done? How to do it right?

+7
c ++ input windows
source share

No one has answered this question yet.

See similar questions:

0
C ++ sending joystick for directional input to the program
0
What is the proper way to populate a HARDWAREINPUT structure for use with SendInput?

or similar:

2873
How do I iterate over the words of a string?
2453
How to install pip on Windows?
2416
How do you set, clear and switch one bit?
1975
How do I know which process the port is listening on in Windows?
1133
You cannot bind to 'ngModel', since this is not a known property of 'input'
949
How to remove border (contour) around text / input fields? (Chromium)
10
Simulate keyboard input in C #
2
SendInput - (simulate mouse movement)
2
How do you track input sent from SendInput in C ++
2
Simulate XButton Input Using SendInput

All Articles