Skip to content

Unable to use rotate command with negative value #692

@FapHeroMan

Description

@FapHeroMan

This is a duplicate post from the "questions-and-support" channel in Buttplug Discord server.

In the library Buttplug 5.0.0., executing the following code encounters an unhandled exception "Percent value -0.5 is not in the range 0.0 <= x <=1.0".
(device is an instance of ButtplugClientDevice class)
(The connected device is A10Cyclone and the server is Intiface Central 3.0.2.)

device.RunOutputAsync(DeviceOutput.Rotate.Percent(-0.5));

Since rotating command needs to accept both negative and positive values for controlling rotating direction(clockwise or counter-clockwise), this issue needs to be addressed.

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions