The '''GiggleTechSettings''' Component is used to control different aspects of [https://giggletech.io/products/giggle_puck giggle pucks] for use in Resonite.
The '''GiggleTechSettings''' Component is used to control different aspects of [https://giggletech.io/products/giggle_puck giggle pucks] for use in Resonite.
See [[Settings]] for information.
== Fields ==
== Fields ==
{{Table ComponentFields
{{Table ComponentFields
|Devices|{{RootFieldType|SyncList`1|[[#Device|Device]]}}|TypeAdv0=true| A list of giggle pucks with settings for them.
|Devices|{{RootFieldType|SyncList`1|[[#Device|GiggleTechSettings.Device]]}}|TypeAdv0=true| A list of giggle pucks with settings for them.
|GigglePuckIP|String| the IP address of the giggle puck.
|IsGigglePuckValid|Bool| Whether the giggle puck is valid and tracking.
}}
}}
== Device ==
== Device ==
{{Table TypeFields
{{Table TypeFields
|IP|String| The IP address of this device.
|IsConnected|Bool| Whether this device is connected.
|UseDevice|Bool| Whether to allow use and registration of this device.
|AlwaysTreatAsConnected|Bool| Whether this puck should always be treated as connected even if it looses connection.
|CustomName|String| A user defined name for this giggle puck.
|IntensityScale|Float| The scaling for intensity.
|MinimumIntensity|Float| The minimum intensity needed to activate this.
|InitialActivationIntensity|Float| How strong the inital activation will be.
|HapticPointMapping|{{RootFieldType|HapticPointMapping}}|TypeAdv8=true| How this is mapped.
|HapticPointIndex|Int| The index of this device in the list of haptic devices.
}}
}}
== Sync Delegates ==
== Sync Delegates ==
{{Table ComponentTriggers
{{Table ComponentTriggers
|RegisterGigglePuck()|[[Type:Action|Action]]| Register a gigglepuck to the list
|RegisterGigglePuck:[[Type:Action|Action]]|[[Type:Action|Action]]|false| Register a gigglepuck to the list
|GetDeviceForSubsetting()|[[Type:SubsettingGetter|SubsettingGetter]]<[[Type:String|String]]: key>| Get the settings of a subsetting. usually one of the <code>Devices</code> in this case.
|GetDeviceForSubsetting:[[Type:SubsettingGetter|SubsettingGetter]]|[[Type:SubsettingGetter|SubsettingGetter]]|false| Get one of the <code>Devices</code> by key.