I've got DirectInput working for my game, and it's looking good for the X and Y axes. However, I am having a little problem with the Z-axis. I have two joysticks - one with a yaw control (twistable handle) and one without. Both have throttle sliders though. My problem is that the one without the twistable handle assigns the throttle as the Z-axis, so in my game, the throttle control is used for yaw. I haven't tried the one with the twistable handle yet (it's not with me right now).
So my question is: how do I determine what each of the axes on my joystick are assigned to? I guess there's something I can do while I'm enumerating the joystick to determine whether or not the Z-axis is assigned to a throttle or an actual yaw control, but I'm not sure what it is.