I am developing a software that synchronizes with Buttplug-compatible devices via Intiface Central.
Currently I am using:
- buttplug-js 5.x
- Intiface Central
- Device: Vorze A10 Cyclone SA
The device is detected correctly and reports:
hasOutput(OutputType.Rotate) === true
Using the new Output API, I can successfully control the device with:
await device.runOutput(
DeviceOutput.Rotate.percent(1.0)
);
However, I cannot find a way to specify the rotation direction (clockwise / counter-clockwise).
In the older APIs and the C# implementation, there is support for rotation direction, for example:
await device.RotateAsync(speed, clockwise);
In buttplug-js v5, DeviceOutput.Rotate.percent() only accepts values between 0.0 and 1.0.
Passing a negative value such as:
DeviceOutput.Rotate.percent(-0.5)
throws:
Percent value -0.5 is not in the range 0.0 <= x <= 1.0
My questions are:
What is the recommended way to control clockwise / counter-clockwise rotation in buttplug-js v5?
If direction control is supported, could you provide a small example using the current v5 API?
If direction control is intentionally not exposed in the v5 Output API, is there another recommended approach?