Sign in to follow this  
Korenn

[SlimDX] DirectInput joystick question

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

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