Jump to content
  • Advertisement
Sign in to follow this  

DInput and dual thumbstick gamepad axis'

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

So I have my DirectInput system up and running to support joysticks/gamepads/etc. A problem occurs to me though - the struct that receives all the data about the joystick state has multiple different axis fields... Is there a way to determine which axis fields are in use without making the user jiggle his stick? For example, I have a X360 pad hooked up to my dev machine, and it always uses the fields lX/lY and lRx/lRy in the struct - is it safe to assume all other dual analog sticks will use the same fields for left and right thumbsticks? I know you can enumerate the axis', but I can't see any way to determine which field in the struct each enumerated axis operates on.

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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!