• Advertisement
Sign in to follow this  

[SlimDX] DirectInput joystick question

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

In SlimDX DirectInput, we can access the stick on the device through: JoystickState.X JoystickState.Y JoystickState.Z But how can I read the state of the right stick? or the third stick, if the device has one?

Share this post


Link to post
Share on other sites
Advertisement
For the second stick, the data may end up in the sliders depending on how the joystick is configured with DirectInput. For a third stick, you'll need to create a custom device and set up your own data format.

Doing specialized programming for such joysticks is most likely not worth the effort. Usually, these types of input devices will come with software that allows users to map joystick commands and axes to other input devices, so you don't have to worry about it. If you want support for the Xbox360 controller, look into using XInput (which is also supported by SlimDX).

Share this post


Link to post
Share on other sites
I'm fairly new with C# and Slimdx, is there a tutorial on how to use JoystickState.X, Y or Z, I'm trying to have my joystick control my quadCopter

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement