[SlimDX] DirectInput joystick question

Started by
1 comment, last by Abdullah Kadhim 12 years, 2 months ago
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?
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).
Mike Popoloski | Journal | SlimDX
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

This topic is closed to new replies.

Advertisement