Sign in to follow this  
Damocles

DInput and dual thumbstick gamepad axis'

Recommended Posts

Damocles    133
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this