UCR icon indicating copy to clipboard operation
UCR copied to clipboard

Input axis selecting - wrong names

Open piotrva opened this issue 7 years ago • 5 comments

Axis are always named as X Y Z ..., not detecting real controller axes (ex. throttle, rudder, etc)

piotrva avatar May 08 '17 18:05 piotrva

The axes are named for the way DirectInput / WinMM names them.
In DI, Axis #0 is X.
A device does not NEED to have an X axis, but if it does, it is ALWAYS axis #0

The axis names are: X, Y, Z, Rx, Ry, Rz, SL0, SL1

evilC avatar May 08 '17 18:05 evilC

Thank You for very fast answer.

I am designing my own yoke systems, based on my project STM-JOY, and using ex 3-axis joystick with Throttle, Rx and Ry - would it be hard to implement detecting names, as joy.cpl and for example FSX does?

piotrva avatar May 08 '17 19:05 piotrva

I take it that for your stick, the manufacturer shipped a custom widget for joy.cpl?
Because AFAIK, for a standard HID device with no custom drivers, joy.cpl will never show "Throttle" as an axis name.
Please attach screenshot

evilC avatar May 08 '17 19:05 evilC

I am using Windows default driver for generic HID joystick. customjoy Here is USB Descriptor: https://gitlab.com/piotrva/STM-JOY/blob/master/Firmware/STM-JOY/Middlewares/ST/STM32_USB_Device_Library/Class/HID/Src/usbd_hid.c#L217 Name of the Joystick (displayed in joy.cpl) is defined here: https://gitlab.com/piotrva/STM-JOY/blob/master/Firmware/STM-JOY/Src/usbd_desc.c#L73 It can be "Saiteh Throttle 2", "STM32 Joystick" or even "Lazy Fox" - this has nothing to do with drivers - it is only defining name of the device.

piotrva avatar May 08 '17 20:05 piotrva

Please feel free to try this stick with the new JoystickWrapper demo I released.
If that code reads the stick right, then the new replacement for UCR will also read it right.

evilC avatar Aug 21 '17 19:08 evilC