-
Notifications
You must be signed in to change notification settings - Fork 16
Wheel settings
All multi-byte values are sent in little endian
Note: When input is open is used only if auto-centering is enabled
To set the strength we send to the second endpoint of the wheel a USB INTERRUPT OUT with the following data content
offsets | 0x0 | 0x1 | 0x2 | 0x3 |
---|---|---|---|---|
0x00 | 0x40 | 0x03 | strength | 0x00 |
With strength an unsigned integer on 8bit with values between 0x00 and 0x64 = 100, extremities included. This is literally the percentage set on the slider, no conversion needed.
Note: when no input are open the wheel always uses the auto centering option!
To set the auto centering we send to the second endpoint of the wheel a USB INTERRUPT OUT with the following data content
offsets | 0x0 | 0x1 | 0x2 | 0x3 |
---|---|---|---|---|
0x00 | 0x40 | 0x04 | center | 0x00 |
With center to 0 if we don't want to use the auto centering feature, 1 otherwise.
How far the wheel can turn in both directions.
To set the range we send to the second endpoint of the wheel a USB INTERRUPT OUT with the following data content
offsets | 0x0 | 0x1 | 0x2 | 0x3 |
---|---|---|---|---|
0x00 | 0x40 | 0x11 | range |
Where range is an unsigned integer on 16bit with values between 0x00 and 0xffff, extremities included.
A value of 0xffff means 1080° of turning range and a value of 0x0000 should mean 0°. Notice that the Windows's driver limit the minimum range to 270°
To set the gain we send to the second endpoint of the wheel a USB INTERRUPT OUT with the following data content
offsets | 0x0 | 0x1 |
---|---|---|
0x00 | 0x43 | gain |
Where gain is an unsigned integer on 8bit with values between 0x00 and 0x80, extremities included.