Lovense Integration
|
Blueprint exposed wrapper library for the Lovense Manager. More...
#include <LovenseIntegration/Source/LovenseIntegration/Public/LovenseFunctionLibrary.h>
Public Member Functions | |
ULovenseFunctionLibrary (const FObjectInitializer &ObjectInitializer) | |
Static Public Member Functions | |
static void | Initialize () |
Will generate the lovense config file and automatically start the integration if "StartWithLovenseActive" config is true. Usually gets called automatically in StartupModule(), but you can set the cvar "li.Initialization.Automatic" to false if you want to manually initialize. It's safe to call this even if the integration is already running. | |
static void | StartLovense () |
Will start the integration. This includes: 1. Fetching config values. 2. Starting the heartbeat to update timers. 3. Notifying listeners that the integration has started. 4. Updating adapters. More... | |
static void | StopLovense () |
Will stop the integration. This includes: 1. Stopping and resetting timers. 2. Clearing any currently running commands. 3. Clearing active and temporary data. 4. Stopping the heartbeat. 5. Notifying listeners that the integration has stopped. More... | |
static void | UpdateAdapters () |
Will fetch all available lovense adapters and update toys. | |
static void | UpdateToys () |
Will fetch all available toys from the currently active lovense adapters. | |
static bool | IsLovenseRunning () |
Whether the integration is currently running. | |
static bool | IsUpdatingAdapters () |
Whether the lovense adapters are currently being updated. | |
static bool | IsUpdatingToys () |
Whether the toys are currently being updated. | |
static const TArray< class ULovenseToy * > & | GetToys () |
All currently available toys. Warning - If you cache these, make sure to subscribe to ULovenseEvents::onLovenseUpdatedToys and re-get them, as the toy objects will have been destroyed. | |
static void | ClearAllCommands (class ULovenseToy *toy=nullptr) |
Will command a single or all toys to set the speed of all functions to 0. More... | |
static bool | SendCommand (ELovenseCommand command, class ULovenseToy *toy, uint8 valueA, int32 time, uint8 valueB, uint8 valueC, const FString &presetName, const FLovensePattern &pattern, FOnLovenseResponseDynamic callback) |
Will send the specified command to a single or all available toys. More... | |
static bool | SendCommand_Test (class ULovenseToy *toy) |
Makes a single or all available toys vibrate for 1.0 seconds to test connection. More... | |
static bool | SendCommand_Stop (class ULovenseToy *toy) |
Stop all commands a single or all available toys might be executing. More... | |
static bool | SendCommand_Vibrate (class ULovenseToy *toy, uint8 vibrationSpeed) |
Set vibration speed on a single or all available toys. More... | |
static bool | SendCommand_Vibrate1 (class ULovenseToy *toy, uint8 vibrationSpeed) |
Set vibration speed of motor 1 on a single or all available toys. More... | |
static bool | SendCommand_Vibrate2 (class ULovenseToy *toy, uint8 vibrationSpeed) |
Set vibration speed of motor 2 on a single or all available toys. More... | |
static bool | SendCommand_Rotate (class ULovenseToy *toy, uint8 rotationSpeed) |
Set rotation speed on a single or all available toys. More... | |
static bool | SendCommand_RotateAntiClockwise (class ULovenseToy *toy, uint8 rotationSpeed) |
Like SendCommand_Rotate(), but specifies the rotation direction to be anti-clockwise. More... | |
static bool | SendCommand_RotateClockwise (class ULovenseToy *toy, uint8 rotationSpeed) |
Like SendCommand_Rotate(), but specifies the rotation direction to be clockwise. More... | |
static bool | SendCommand_RotateChange (class ULovenseToy *toy) |
Toggles the rotation direction between clockwise and anti-clockwise on a single or all available toys. More... | |
static bool | SendCommand_AirAuto (class ULovenseToy *toy, uint8 pulseSpeed) |
Set air pulse speed on a single or all available toys. More... | |
static bool | SendCommand_AirIn (class ULovenseToy *toy) |
Will pump in air on a single or all available toys. More... | |
static bool | SendCommand_AirOut (class ULovenseToy *toy) |
Will pump out air on a single or all available toys. More... | |
static bool | SendCommand_Thrust (class ULovenseToy *toy, uint8 thrustingSpeed) |
Set thrusting speed on a single or all available toys. More... | |
static bool | SendCommand_Suck (class ULovenseToy *toy, uint8 suctionSpeed) |
Set suction speed on a single or all available toys. More... | |
static bool | SendCommand_Finger (class ULovenseToy *toy, uint8 fingeringSpeed) |
Set fingering speed on a single or all available toys. More... | |
static bool | SendCommand_Preset (class ULovenseToy *toy, uint8 pattern) |
Set vibration pattern on a single or all available toys. More... | |
static bool | SendCommand_Battery (class ULovenseToy *toy, FOnLovenseResponseDynamic callback) |
Fetch the battery status of a toy. More... | |
static bool | SendCommand_AVibrate (class ULovenseToy *toy, uint8 vibrationSpeed, int32 time) |
Set vibration speed on a single or all available toys for a certain amount of time. More... | |
static bool | SendCommand_AVibrate1 (class ULovenseToy *toy, uint8 vibrationSpeed, int32 time) |
Set vibration speed of motor 1 on a single or all available toys for a certain amount of time. More... | |
static bool | SendCommand_AVibrate2 (class ULovenseToy *toy, uint8 vibrationSpeed, int32 time) |
Set vibration speed of motor 2 on a single or all available toys for a certain amount of time. More... | |
static bool | SendCommand_ARotate (class ULovenseToy *toy, uint8 rotationSpeed, int32 time) |
Set rotation speed on a single or all available toys for a certain amount of time. More... | |
static bool | SendCommand_AAirLevel (class ULovenseToy *toy, uint8 pulseSpeed, int32 time) |
Set air pulse speed on a single or all available toys for a certain amount of time. More... | |
static bool | SendCommand_AThrust (class ULovenseToy *toy, uint8 thrustingSpeed, int32 time) |
Set thrusting speed on a single or all available toys for a certain amount of time. More... | |
static bool | SendCommand_ASuck (class ULovenseToy *toy, uint8 suctionSpeed, int32 time) |
Set suction speed on a single or all available toys for a certain amount of time. More... | |
static bool | SendCommand_AFinger (class ULovenseToy *toy, uint8 fingeringSpeed, int32 time) |
Set fingering speed on a single or all available toys for a certain amount of time. More... | |
static bool | SendCommand_APreset (class ULovenseToy *toy, const FString &patternName, int32 time) |
Set preset on a single or all available toys for a certain amount of time. More... | |
static bool | SendCommand_AVibRotate (class ULovenseToy *toy, uint8 vibrationSpeed, uint8 rotationSpeed, int32 time) |
Set vibration and rotation speed on a single or all available toys for a certain amount of time. More... | |
static bool | SendCommand_AVibAir (class ULovenseToy *toy, uint8 vibrationSpeed, uint8 pulseSpeed, int32 time) |
Set vibration and air pulse speed on a single or all available toys for a certain amount of time. More... | |
static bool | SendCommand_AVibRotateAir (class ULovenseToy *toy, uint8 vibrationSpeed, uint8 rotationSpeed, uint8 pulseSpeed, int32 time) |
Set vibration, rotation and air pulse speed on a single or all available toys for a certain amount of time. More... | |
static bool | SendCommand_AAll (class ULovenseToy *toy, uint8 speed, int32 time) |
Set all function speeds on a single or all available toys for a certain amount of time. More... | |
static bool | SendCommand_Pattern (class ULovenseToy *toy, const TArray< int32 > &pattern, bool bVibrate=true, bool bRotate=true, bool bPump=true, bool bThrust=true, bool bSuck=true, bool bFinger=true, int32 interval=100, int32 time=1) |
Play a pattern of vibration, rotation, air pulse, thrusting, suction and/or fingering speeds on a single or all available toys for a certain amount of time. More... | |
static class ULovenseEvents * | GetLovenseEvents () |
Object holding global Lovense Integration delegates. | |
static bool | GetStartWithLovenseActive () |
Fetch the config value "StartWithLovenseActive" from config. If true, lovense will be started on StartupModule(). Defaults to false. | |
static FString | GetDeviceIpOverride () |
Fetch the config value "DeviceIpOverride" from config. If this ip is valid, it will be used to connect with the adapters. | |
static FString | GetDevicePortOverride () |
Fetch the config value "DevicePortOverride" from config. If this port is valid, it will be used to connect with the adapters. | |
static int32 | GetToyDelay () |
Get the cached "ToyDelay" config value. Toy delay is in milliseconds. Value range is 0-2000ms and defaults to 500ms. The toy delay adjusts the start time for pattern generation based on animations. (See ULovenseToyAnimationControlComponent) | |
static float | GetToyStrengthMultiplier () |
Get the cached "ToyStrengthMultiplier" config value. Value range is 0.0f-1.0f and defaults to 1.0f. The toy strength multiplier scales the speed values before commands are sent. | |
static bool | GetToyVibrationEnabled () |
Get the cached "ToyVibrationEnabled" config value. If false, vibration speed values will be set to 0 before commands are sent, so toys will not vibrate. Defaults to true. | |
static bool | GetToyRotationEnabled () |
Get the cached "ToyRotationEnabled" config value. If false, rotation speed values will be set to 0 before commands are sent, so toys will not rotate. Defaults to true. | |
static bool | GetToyAirEnabled () |
Get the cached "ToyAirEnabled" config value. If false, air speed values will be set to 0 before commands are sent, so toys will not pump. Defaults to true. | |
static bool | GetToyThrustingEnabled () |
Get the cached "ToyThrustingEnabled" config value. If false, thrusting speed values will be set to 0 before commands are sent, so toys will not thrust. Defaults to true. | |
static bool | GetToySuctionEnabled () |
Get the cached "ToySuctionEnabled" config value. If false, suction speed values will be set to 0 before commands are sent, so toys will not suck. Defaults to true. | |
static bool | GetToyFingeringEnabled () |
Get the cached "ToyFingeringEnabled" config value. If false, fingering speed values will be set to 0 before commands are sent, so toys will not finger. Defaults to true. | |
static bool | IsIPStringValid (const FString &ipString) |
Checks if ipString is a valid IP. | |
static bool | IsPortStringValid (const FString &portString) |
Checks if portString is a valid port. | |
static void | SetStartWithLovenseActive (bool bStartActive) |
Write the config value "StartWithLovenseActive" to config. If true, lovense will be started on StartupModule(). Defaults to false. | |
static void | SetDeviceIpOverride (const FString &ipOverride) |
Write the config value "DeviceIpOverride" to config. If this ip is valid, it will be used to connect with the adapters. | |
static void | SetDevicePortOverride (const FString &portOverride) |
Write the config value "DevicePortOverride" to config. If this port is valid, it will be used to connect with the adapters. | |
static void | SetToyDelay (int32 value) |
Set cached "ToyDelay" config value and write it to config. Toy delay is in milliseconds. Value range is 0-2000ms and defaults to 500ms. The value only gets clamped on load, so caller should make sure it is in range. The toy delay adjusts the start time for pattern generation based on animations. (See ULovenseToyAnimationControlComponent) | |
static void | SetToyStrengthMultiplier (float value) |
Set cached "ToyStrengthMultiplier" config value and write it to config. Value range is 0.0f-1.0f and defaults to 1.0f. The value only gets clamped on load, so caller should make sure it is in range. The toy strength multiplier scales the speed values before commands are sent. | |
static void | SetToyVibrationEnabled (bool value) |
Set cached "ToyVibration" config value and write it to config. If false, vibration speed values will be set to 0 before commands are sent, so toys will not vibrate. Defaults to true;. More... | |
static void | SetToyRotationEnabled (bool value) |
Set cached "ToyRotation" config value and write it to config. If false, rotation speed values will be set to 0 before commands are sent, so toys will not rotate. Defaults to true;. More... | |
static void | SetToyAirEnabled (bool value) |
Set cached "ToyAir" config value and write it to config. If false, air speed values will be set to 0 before commands are sent, so toys will not pump. Defaults to true;. More... | |
static void | SetToyThrustingEnabled (bool value) |
Set cached "ToyThrusting" config value and write it to config. If false, thrusting speed values will be set to 0 before commands are sent, so toys will not thrust. Defaults to true;. More... | |
static void | SetToySuctionEnabled (bool value) |
Set cached "ToySuction" config value and write it to config. If false, suction speed values will be set to 0 before commands are sent, so toys will not suck. Defaults to true;. More... | |
static void | SetToyFingeringEnabled (bool value) |
Set cached "ToyFingering" config value and write it to config. If false, fingering speed values will be set to 0 before commands are sent, so toys will not finger. Defaults to true;. More... | |
Blueprint exposed wrapper library for the Lovense Manager.
|
static |
Will command a single or all toys to set the speed of all functions to 0.
toy | Specifies the toy commands should be cleared on. Can be nullptr, in that case commands are cleared on all available toys. |
|
static |
Will send the specified command to a single or all available toys.
command | The command to be sent. |
toy | Specifies the toy the command is sent to. Can be nullptr, in that case the command is sent to all available toys. |
valueA | Not relevant for the Test, RotateChange, AirIn, AirOut and Battery command. The speed of the vibration. Valid range is 0-20, 0 meaning off. |
time | Only relevant for the A* commands. Time in seconds for how long the command should run. Only full seconds are supported. |
valueB | Only relevant for the AVibRotate AVibAir commands. For AVibRotate: The speed of the rotation. Valid range is 0-20, 0 meaning off. For AVibAir: The speed of the air pulsation. Valid range is 0-3, 0 meaning off. |
valueC | Only relevant for the AVibRotateAir command. The speed of the air pulsation. Valid range is 0-3, 0 meaning off. |
presetName | Only relevant for the APreset command. The name of the pattern. Valid names are "pulse", "wave", "fireworks", "earthquake". Leave empty to stop. |
pattern | Only relevant for the Pattern command. The data defining the pattern. See FLovensePattern for more information. |
callback | Only relevant for the Battery command. |
|
static |
Set air pulse speed on a single or all available toys for a certain amount of time.
toy | Specifies the toy the command is sent to. Can be nullptr, in that case the command is sent to all available toys. |
pulseSpeed | The speed of the air pulsation. Valid range is 0-3, 0 meaning off. |
time | Time in seconds for how long the command should run. Only full seconds are supported. Note The Lovense Connect app only has one global timer, meaning if an A* command is sent to a toy while another toy on the same adapter is currently running an A* command, that other toy will be interrupted. |
|
static |
Set all function speeds on a single or all available toys for a certain amount of time.
toy | Specifies the toy the command is sent to. Can be nullptr, in that case the command is sent to all available toys. |
speed | The speed of all functions. Valid range is 0-20, 0 meaning off. |
time | Time in seconds for how long the command should run. Only full seconds are supported. |
|
static |
Set fingering speed on a single or all available toys for a certain amount of time.
toy | Specifies the toy the command is sent to. Can be nullptr, in that case the command is sent to all available toys. |
fingeringSpeed | The speed of the fingering. Valid range is 0-20, 0 meaning off. |
time | Time in seconds for how long the command should run. Only full seconds are supported. Note The Lovense Connect app only has one global timer, meaning if an A* command is sent to a toy while another toy on the same adapter is currently running an A* command, that other toy will be interrupted. |
|
static |
Set air pulse speed on a single or all available toys.
toy | Specifies the toy the command is sent to. Can be nullptr, in that case the command is sent to all available toys. |
pulseSpeed | The speed of the air pulsation. Valid range is 0-3, 0 meaning off. |
|
static |
Will pump in air on a single or all available toys.
toy | Specifies the toy the command is sent to. Can be nullptr, in that case the command is sent to all available toys. |
|
static |
Will pump out air on a single or all available toys.
toy | Specifies the toy the command is sent to. Can be nullptr, in that case the command is sent to all available toys. |
|
static |
Set preset on a single or all available toys for a certain amount of time.
toy | Specifies the toy the command is sent to. Can be nullptr, in that case the command is sent to all available toys. |
patternName | The name of the pattern. Valid names are "pulse", "wave", "fireworks", "earthquake". Leave empty to stop. |
time | Time in seconds for how long the command should run. Only full seconds are supported. Note The Lovense Connect app only has one global timer, meaning if an A* command is sent to a toy while another toy on the same adapter is currently running an A* command, that other toy will be interrupted. |
|
static |
Set rotation speed on a single or all available toys for a certain amount of time.
toy | Specifies the toy the command is sent to. Can be nullptr, in that case the command is sent to all available toys. |
rotationSpeed | The speed of the rotation. Valid range is 0-20, 0 meaning off. |
time | Time in seconds for how long the command should run. Only full seconds are supported. Note The Lovense Connect app only has one global timer, meaning if an A* command is sent to a toy while another toy on the same adapter is currently running an A* command, that other toy will be interrupted. |
|
static |
Set suction speed on a single or all available toys for a certain amount of time.
toy | Specifies the toy the command is sent to. Can be nullptr, in that case the command is sent to all available toys. |
suctionSpeed | The speed of the suction. Valid range is 0-20, 0 meaning off. |
time | Time in seconds for how long the command should run. Only full seconds are supported. Note The Lovense Connect app only has one global timer, meaning if an A* command is sent to a toy while another toy on the same adapter is currently running an A* command, that other toy will be interrupted. |
|
static |
Set thrusting speed on a single or all available toys for a certain amount of time.
toy | Specifies the toy the command is sent to. Can be nullptr, in that case the command is sent to all available toys. |
thrustingSpeed | The speed of the thrusting. Valid range is 0-20, 0 meaning off. |
time | Time in seconds for how long the command should run. Only full seconds are supported. Note The Lovense Connect app only has one global timer, meaning if an A* command is sent to a toy while another toy on the same adapter is currently running an A* command, that other toy will be interrupted. |
|
static |
Set vibration and air pulse speed on a single or all available toys for a certain amount of time.
toy | Specifies the toy the command is sent to. Can be nullptr, in that case the command is sent to all available toys. |
vibrationSpeed | The speed of the vibration. Valid range is 0-20, 0 meaning off. |
pulseSpeed | The speed of the air pulsation. Valid range is 0-3, 0 meaning off. |
time | Time in seconds for how long the command should run. Only full seconds are supported. Note The Lovense Connect app only has one global timer, meaning if an A* command is sent to a toy while another toy on the same adapter is currently running an A* command, that other toy will be interrupted. |
|
static |
Set vibration speed on a single or all available toys for a certain amount of time.
toy | Specifies the toy the command is sent to. Can be nullptr, in that case the command is sent to all available toys. |
vibrationSpeed | The speed of the vibration. Valid range is 0-20, 0 meaning off. |
time | Time in seconds for how long the command should run. Only full seconds are supported. Note The Lovense Connect app only has one global timer, meaning if an A* command is sent to a toy while another toy on the same adapter is currently running an A* command, that other toy will be interrupted. |
|
static |
Set vibration speed of motor 1 on a single or all available toys for a certain amount of time.
toy | Specifies the toy the command is sent to. Can be nullptr, in that case the command is sent to all available toys. |
vibrationSpeed | The speed of the vibration. Valid range is 0-20, 0 meaning off. |
time | Time in seconds for how long the command should run. Only full seconds are supported. Note The Lovense Connect app only has one global timer, meaning if an A* command is sent to a toy while another toy on the same adapter is currently running an A* command, that other toy will be interrupted. |
|
static |
Set vibration speed of motor 2 on a single or all available toys for a certain amount of time.
toy | Specifies the toy the command is sent to. Can be nullptr, in that case the command is sent to all available toys. |
vibrationSpeed | The speed of the vibration. Valid range is 0-20, 0 meaning off. |
time | Time in seconds for how long the command should run. Only full seconds are supported. Note The Lovense Connect app only has one global timer, meaning if an A* command is sent to a toy while another toy on the same adapter is currently running an A* command, that other toy will be interrupted. |
|
static |
Set vibration and rotation speed on a single or all available toys for a certain amount of time.
toy | Specifies the toy the command is sent to. Can be nullptr, in that case the command is sent to all available toys. |
vibrationSpeed | The speed of the vibration. Valid range is 0-20, 0 meaning off. |
rotationSpeed | The speed of the rotation. Valid range is 0-20, 0 meaning off. |
time | Time in seconds for how long the command should run. Only full seconds are supported. Note The Lovense Connect app only has one global timer, meaning if an A* command is sent to a toy while another toy on the same adapter is currently running an A* command, that other toy will be interrupted. |
|
static |
Set vibration, rotation and air pulse speed on a single or all available toys for a certain amount of time.
toy | Specifies the toy the command is sent to. Can be nullptr, in that case the command is sent to all available toys. |
vibrationSpeed | The speed of the vibration. Valid range is 0-20, 0 meaning off. |
rotationSpeed | The speed of the rotation. Valid range is 0-20, 0 meaning off. |
pulseSpeed | The speed of the air pulsation. Valid range is 0-3, 0 meaning off. |
time | Time in seconds for how long the command should run. Only full seconds are supported. |
|
static |
Fetch the battery status of a toy.
toy | Specifies the toy the command is sent to. Needs a valid toy. |
callback | Executed once the battery status has been received. Event has two parameters: - A ULovenseToy parameter with the toy this command was called with. - An int32 parameter indicating the battery level. Value range is -1-100, -1 meaning the battery status could not be fetched. |
|
static |
Set fingering speed on a single or all available toys.
toy | Specifies the toy the command is sent to. Can be nullptr, in that case the command is sent to all available toys. |
fingeringSpeed | The speed of the fingering. Valid range is 0-20, 0 meaning off. |
|
static |
Play a pattern of vibration, rotation, air pulse, thrusting, suction and/or fingering speeds on a single or all available toys for a certain amount of time.
toy | Specifies the toy the command is sent to. Can be nullptr, in that case the command is sent to all available toys. |
pattern | Array of toy speed values (0-20) that constitutes the pattern. Maximum number of values is 50. |
bVibrate | Whether the pattern will make the toy vibrate. (Might be overridden by user config "ToyVibration") |
bRotate | Whether the pattern will make the toy rotate. (Might be overridden by user config "ToyRotation") |
bPump | Whether the pattern will make the toy pump. (Might be overridden by user config "ToyAir") |
bThrust | Whether the pattern will make the toy thrust. (Might be overridden by user config "ToyThrusting") |
bSuck | Whether the pattern will make the toy suck. (Might be overridden by user config "ToySuction") |
bFinger | Whether the pattern will make the toy finger. (Might be overridden by user config "ToyFingering") |
interval | The interval in milliseconds the pattern will be played at. Minimum interval is 100. |
time | The time in seconds the pattern will play for. If 0, the pattern will play indefinitely, otherwise should be >=1. |
|
static |
Set vibration pattern on a single or all available toys.
toy | Specifies the toy the command is sent to. Can be nullptr, in that case the command is sent to all available toys. |
pattern | The vibration pattern. Valid range is 0-3, 0 meaning off. |
|
static |
Set rotation speed on a single or all available toys.
toy | Specifies the toy the command is sent to. Can be nullptr, in that case the command is sent to all available toys. |
rotationSpeed | The speed of the rotation. Valid range is 0-20, 0 meaning off. |
|
static |
Like SendCommand_Rotate(), but specifies the rotation direction to be anti-clockwise.
toy | Specifies the toy the command is sent to. Can be nullptr, in that case the command is sent to all available toys. |
rotationSpeed | The speed of the rotation. Valid range is 0-20, 0 meaning off. |
|
static |
Toggles the rotation direction between clockwise and anti-clockwise on a single or all available toys.
toy | Specifies the toy the command is sent to. Can be nullptr, in that case the command is sent to all available toys. |
|
static |
Like SendCommand_Rotate(), but specifies the rotation direction to be clockwise.
toy | Specifies the toy the command is sent to. Can be nullptr, in that case the command is sent to all available toys. |
rotationSpeed | The speed of the rotation. Valid range is 0-20, 0 meaning off. |
|
static |
Stop all commands a single or all available toys might be executing.
|
static |
Set suction speed on a single or all available toys.
toy | Specifies the toy the command is sent to. Can be nullptr, in that case the command is sent to all available toys. |
suctionSpeed | The speed of the suction. Valid range is 0-20, 0 meaning off. |
|
static |
Makes a single or all available toys vibrate for 1.0 seconds to test connection.
toy | Specifies the toy the command is sent to. Can be nullptr, in that case the command is sent to all available toys. |
|
static |
Set thrusting speed on a single or all available toys.
toy | Specifies the toy the command is sent to. Can be nullptr, in that case the command is sent to all available toys. |
thrustingSpeed | The speed of the thrusting. Valid range is 0-20, 0 meaning off. |
|
static |
Set vibration speed on a single or all available toys.
toy | Specifies the toy the command is sent to. Can be nullptr, in that case the command is sent to all available toys. |
vibrationSpeed | The speed of the vibration. Valid range is 0-20, 0 meaning off. |
|
static |
Set vibration speed of motor 1 on a single or all available toys.
toy | Specifies the toy the command is sent to. Can be nullptr, in that case the command is sent to all available toys. |
vibrationSpeed | The speed of the vibration. Valid range is 0-20, 0 meaning off. |
|
static |
Set vibration speed of motor 2 on a single or all available toys.
toy | Specifies the toy the command is sent to. Can be nullptr, in that case the command is sent to all available toys. |
vibrationSpeed | The speed of the vibration. Valid range is 0-20, 0 meaning off. |
|
static |
Set cached "ToyAir" config value and write it to config.
If false, air speed values will be set to 0 before commands are sent, so toys will not pump. Defaults to true;.
|
static |
Set cached "ToyFingering" config value and write it to config.
If false, fingering speed values will be set to 0 before commands are sent, so toys will not finger. Defaults to true;.
|
static |
Set cached "ToyRotation" config value and write it to config.
If false, rotation speed values will be set to 0 before commands are sent, so toys will not rotate. Defaults to true;.
|
static |
Set cached "ToySuction" config value and write it to config.
If false, suction speed values will be set to 0 before commands are sent, so toys will not suck. Defaults to true;.
|
static |
Set cached "ToyThrusting" config value and write it to config.
If false, thrusting speed values will be set to 0 before commands are sent, so toys will not thrust. Defaults to true;.
|
static |
Set cached "ToyVibration" config value and write it to config.
If false, vibration speed values will be set to 0 before commands are sent, so toys will not vibrate. Defaults to true;.
|
static |
Will start the integration. This includes:
1. Fetching config values.
2. Starting the heartbeat to update timers.
3. Notifying listeners that the integration has started.
4. Updating adapters.
|
static |
Will stop the integration. This includes:
1. Stopping and resetting timers.
2. Clearing any currently running commands.
3. Clearing active and temporary data.
4. Stopping the heartbeat.
5. Notifying listeners that the integration has stopped.