Hello,
Thank you for posting in Q&A forum.
As far as I know, there is no way to simulate Xbox controller input programmatically directly, based on user32.dll for keyboard and mouse input etc.
The functions keybd_event and mouse_event you mentioned are part of the Windows API for simulating keyboard and mouse events, but there is no direct equivalent in the Windows API for Xbox controller input.
I hope the information above is helpful.
Best Regards,
Yanhong Liu
============================================
If the Answer is helpful, please click "Accept Answer" and upvote it.