Class RotateCmd
Sent to server, generic message that can control any rotating device. This message can take
multiple commands for devices with multiple rotators.
Assembly: Buttplug.dll
Syntax
public class RotateCmd : ButtplugDeviceMessage
Constructors
RotateCmd(List<RotateCmd.RotateSubcommand>)
Initializes a new instance of the RotateCmd class.
Declaration
public RotateCmd(List<RotateCmd.RotateSubcommand> rotations)
Parameters
RotateCmd(UInt32, List<RotateCmd.RotateSubcommand>, UInt32)
Initializes a new instance of the RotateCmd class.
Declaration
public RotateCmd(uint deviceIndex, List<RotateCmd.RotateSubcommand> rotations, uint id = null)
Parameters
Fields
Rotations
List of rotation speeds and directions.
Declaration
public List<RotateCmd.RotateSubcommand> Rotations
Field Value
Methods
Create(IEnumerable<RotateCmd.RotateCommand>)
Declaration
public static RotateCmd Create(IEnumerable<RotateCmd.RotateCommand> cmds)
Parameters
Returns
Create(Double, Boolean, UInt32)
Declaration
public static RotateCmd Create(double speed, bool clockwise, uint cmdCount)
Parameters
Returns
Create(UInt32, UInt32, IEnumerable<RotateCmd.RotateCommand>)
Declaration
public static RotateCmd Create(uint deviceIndex, uint msgId, IEnumerable<RotateCmd.RotateCommand> cmds)
Parameters
Returns
Create(UInt32, UInt32, Double, Boolean, UInt32)
Declaration
public static RotateCmd Create(uint deviceIndex, uint msgId, double speed, bool clockwise, uint cmdCount)
Parameters
Returns