Jump to content
  • Advertisement
Sign in to follow this  
Korenn

[SlimDX] DirectInput joystick question

This topic is 2517 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
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!