Jump to content
  • Advertisement
Sign in to follow this  
vsk

Simulating peripheral inputs

This topic is 3802 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello, I would like to know how can I simulate peripheral inputs (mouse,keyboard, etc) for play a game. Example, I have a game running in my computer and I want simulate "a"+ "->" etc. But I don't want to push this keys. How can this be done in a accuracy way?. I think that what I want is to write in the mouse, and keyboard buffer. Would this would work? What solution do you propose? Thanks

Share this post


Link to post
Share on other sites
Advertisement
http://www.codeproject.com/KB/cpp/sendkeys_cpp_Article.aspx should work for the keyboard.

For the mouse just send the appropriate messages to the window - WM_MOUSEMOVE, etc.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!