Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

3cheeseMac

Better examples of DirectInput?

This topic is 5900 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 have been reading through the code for the joystick example that comes with the DX8.1 SDK. I was wondering if anyone knows of some others? The code certainly shows how to effectively initialize and enumerate a joystick device, but I would like to see it applied to something other than a dialog box or other Windows objects. How do you effectively apply the polling results to 3D object transformations? What I really want to do is set up a user controlled camera. Thanks, 3CM

Share this post


Link to post
Share on other sites
Advertisement
i cant remember exactly how the data is sent, but when you get the number representing how far it moved.

you will probably want to simply multiply this number by a scaling float and plug it into yaw (x axis) and pitch (y axis) as an angle.

Share this post


Link to post
Share on other sites

  • 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!