mdjarv / JoystickVisualizer

Joystick Visualizer software, currently made for the Thrustmaster Warthog
81 stars 28 forks source link

Support for X-52 Stick and Throttle #16

Open mdjarv opened 6 years ago

mdjarv commented 6 years ago

X-52 stick and throttle are connected as a single USB device

These are the axis:

Y for Throttle X for Roll Y for Pitch Z for Yaw

See #14 for more details

mdjarv commented 6 years ago

Since the X-52 HOTAS show up as a single device we need to figure out how to show only the device(s) being used.

Check if we can enable the throttle only if axis Z is triggered, and the stick only if axis X/Y is triggered, that way these devices can share USB ID but work independently

brittz commented 6 years ago

Check if we can enable the throttle only if axis Z is triggered, and the stick only if axis X/Y is triggered, that way these devices can share USB ID but work independently

I think it should be work on that way.

In the Proxy I receive all inputs, but some diferent as I described above (X-Planet setup). See: Throttle: 06a3:075c,Saitek X52 Throttle,Z=65535 Stick up and down: 06a3:075c,Saitek X52 Throttle,X=30655 Stick left and right: 06a3:075c,Saitek X52 Throttle,Y=31999 Stick Yaw: 06a3:075c,Saitek X52 Throttle,RotationZ=63158

In the Visualizer, it remaing waiting for device until I move the Stick or Throttle, after that, the 3D Throttle model shows up and start working.

mdjarv commented 6 years ago

Could you test release 0.9.8 and see if both the throttle and joystick works

https://github.com/mdjarv/JoystickVisualizer/releases/tag/v0.9.8

brittz commented 6 years ago

Tested and worked 100%! Thank you!!!

SilverlightPony commented 6 years ago

Not working for me. Maybe a difference between basic X52 and X52 Pro?

X52 Pro USB hardware IDs: https://i.imgur.com/3nzMwQn.png

Axes:

mdjarv commented 6 years ago

@brittz Nice! One of these days I might even be able to make a model for it with enough practice.

@SilverlightPony Yeah, the Pro had a different ID so thanks for getting it for me. I'll add it and make a new release in a few minutes

mdjarv commented 6 years ago

@SilverlightPony How about this? https://github.com/mdjarv/JoystickVisualizer/releases/tag/v0.9.9

SilverlightPony commented 6 years ago

Reading throttle position. Stick is not shown, but I get the feeling that's intentional (or at least a known limitation at present). Now if only you had the correct 3D model. :P

Lemme know if you need any more info for improvements.

mdjarv commented 6 years ago

Hmm, stick should show if you move it, just like the throttle should show when you move it... just to be clear, you are using both X52 Pro throttle and stick?

SilverlightPony commented 6 years ago

Ah, yup. It's not animating stick-twist tho.

mdjarv commented 6 years ago

Yeah, unfortunately adding proper twist movement is quite difficult as it requires a mix of local and global rotations to get right (I've done it once and it took a few more hours than I'd like to admit).

Maybe if we get a proper 3D model it would be worth the effort but the Warthog model is a bit too cumbersome to work with in this regard.

Blu3wolf commented 5 years ago

Just wanted to point out there are X-52 Pros which have the PID 0255 - I believe anyone with one of those sticks would not be supported currently?