UCR
UCR copied to clipboard
Input axis selecting - wrong names
Axis are always named as X Y Z ..., not detecting real controller axes (ex. throttle, rudder, etc)
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
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?
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
I am using Windows default driver for generic HID joystick.
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.
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.