Jump to content
  • Advertisement
Sign in to follow this  
dylanwinn

Input in C# / XNA GS 2.0

This topic is 3728 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

OK, so I appear to have missed something very important to game design: Input. To put it simply, I have Xbox 360 controller input and keyboard input down, but I don't quite understand Windows gamepad, or more importantly, mouse input. If anyone could post a code example with comments, or link to something clearer than the MSDN article, it would be appreciated. I want to use the mouse to aim the camera, and the keyboard to move it. P.S. I assume that mouse input could be changed from a coordinate position to analog axises by simply writing the position to memory, refreshing it, and comparing the new position to the old one, but I can't quite figure it out. Thanks! 360 Controller info: http://msdn.microsoft.com/en-us/library/bb203900.aspx Keyboard info: http://msdn.microsoft.com/en-us/library/bb203902.aspx Mouse info: http://msdn.microsoft.com/en-us/library/bb197572.aspx Camera Info: http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=826760&SiteID=1 Edit: figured out mouse look, and keyboard movement thanks to this: http://www.twistedcoding.com/2006/12/11/movement I still need to figure out using both 360 controller and keyboard + mouse, and standard windows gamepad / joystick...

Share this post


Link to post
Share on other sites
Advertisement
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!