mirror of
https://github.com/SlimeVR/SlimeVR-Server.git
synced 2026-12-03 23:32:29 -08:00
spotless
This commit is contained in:
1 parent
9667fd93be
commit
e719fe38cf
5 files changed
+23
-23
No files matched your search
@@ -124,25 +124,25 @@ private fun settingsOf(root: Map<*, *>): SettingsConfigState {
|
||||
resetHmdAttitude = boolOf(resets["resetHmdPitch"]) ?: defaultResets.resetHmdAttitude,
|
||||
),
|
||||
trackerActionConfig = defaultTap.copy(
|
||||
yawResetAction = defaultTap.yawResetAction.copy(
|
||||
enabled = boolOf(tap["yawResetEnabled"]) ?: defaultTap.yawResetAction.enabled,
|
||||
delay = floatOf(tap["yawResetDelay"]) ?: defaultTap.yawResetAction.delay,
|
||||
bodyPart = stringOf(tap["yawResetTracker"])?.let(::bodyPartOf) ?: defaultTap.yawResetAction.bodyPart,
|
||||
taps = intOf(tap["yawResetTaps"]) ?: defaultTap.yawResetAction.taps,
|
||||
),
|
||||
fullResetAction = defaultTap.fullResetAction.copy(
|
||||
enabled = boolOf(tap["fullResetEnabled"]) ?: defaultTap.fullResetAction.enabled,
|
||||
delay = floatOf(tap["fullResetDelay"]) ?: defaultTap.fullResetAction.delay,
|
||||
bodyPart = stringOf(tap["fullResetTracker"])?.let(::bodyPartOf) ?: defaultTap.fullResetAction.bodyPart,
|
||||
taps = intOf(tap["fullResetTaps"]) ?: defaultTap.fullResetAction.taps,
|
||||
),
|
||||
mountingResetAction = defaultTap.mountingResetAction.copy(
|
||||
enabled = boolOf(tap["mountingResetEnabled"]) ?: defaultTap.mountingResetAction.enabled,
|
||||
delay = floatOf(tap["mountingResetDelay"]) ?: defaultTap.mountingResetAction.delay,
|
||||
bodyPart = stringOf(tap["mountingResetTracker"])?.let(::bodyPartOf) ?: defaultTap.mountingResetAction.bodyPart,
|
||||
taps = intOf(tap["mountingResetTaps"]) ?: defaultTap.mountingResetAction.taps,
|
||||
),
|
||||
tapsTrackersOverThreshold = intOf(tap["numberTrackersOverThreshold"]) ?: defaultTap.tapsTrackersOverThreshold,
|
||||
yawResetAction = defaultTap.yawResetAction.copy(
|
||||
enabled = boolOf(tap["yawResetEnabled"]) ?: defaultTap.yawResetAction.enabled,
|
||||
delay = floatOf(tap["yawResetDelay"]) ?: defaultTap.yawResetAction.delay,
|
||||
bodyPart = stringOf(tap["yawResetTracker"])?.let(::bodyPartOf) ?: defaultTap.yawResetAction.bodyPart,
|
||||
taps = intOf(tap["yawResetTaps"]) ?: defaultTap.yawResetAction.taps,
|
||||
),
|
||||
fullResetAction = defaultTap.fullResetAction.copy(
|
||||
enabled = boolOf(tap["fullResetEnabled"]) ?: defaultTap.fullResetAction.enabled,
|
||||
delay = floatOf(tap["fullResetDelay"]) ?: defaultTap.fullResetAction.delay,
|
||||
bodyPart = stringOf(tap["fullResetTracker"])?.let(::bodyPartOf) ?: defaultTap.fullResetAction.bodyPart,
|
||||
taps = intOf(tap["fullResetTaps"]) ?: defaultTap.fullResetAction.taps,
|
||||
),
|
||||
mountingResetAction = defaultTap.mountingResetAction.copy(
|
||||
enabled = boolOf(tap["mountingResetEnabled"]) ?: defaultTap.mountingResetAction.enabled,
|
||||
delay = floatOf(tap["mountingResetDelay"]) ?: defaultTap.mountingResetAction.delay,
|
||||
bodyPart = stringOf(tap["mountingResetTracker"])?.let(::bodyPartOf) ?: defaultTap.mountingResetAction.bodyPart,
|
||||
taps = intOf(tap["mountingResetTaps"]) ?: defaultTap.mountingResetAction.taps,
|
||||
),
|
||||
tapsTrackersOverThreshold = intOf(tap["numberTrackersOverThreshold"]) ?: defaultTap.tapsTrackersOverThreshold,
|
||||
),
|
||||
vmcConfig = defaultVmc.copy(
|
||||
enabled = boolOf(vmc["enabled"]) ?: defaultVmc.enabled,
|
||||
|
||||
@@ -28,7 +28,7 @@ class HIDButtonLegacyBehaviour(private val appContext: AppContextProvider) : HID
|
||||
appContext.trackerActionManager.actionTriggered(
|
||||
tracker.context.state.value.id,
|
||||
"HIDButtonLegacy",
|
||||
TrackerActionMethod.BUTTON
|
||||
TrackerActionMethod.BUTTON,
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ class HIDButtonV3Behaviour(private val appContext: AppContextProvider) : HIDRece
|
||||
appContext.trackerActionManager.actionTriggered(
|
||||
tracker.context.state.value.id,
|
||||
"HIDButtonV3",
|
||||
TrackerActionMethod.BUTTON
|
||||
TrackerActionMethod.BUTTON,
|
||||
)
|
||||
}.launchIn(receiver.context.scope)
|
||||
}
|
||||
|
||||
@@ -36,9 +36,9 @@ import dev.slimevr.solarxr.rpc.SettingsResetBehaviour
|
||||
import dev.slimevr.solarxr.rpc.SkeletonProportionsBehaviour
|
||||
import dev.slimevr.solarxr.rpc.SkeletonSettingsBehaviour
|
||||
import dev.slimevr.solarxr.rpc.StayAlignedBehaviour
|
||||
import dev.slimevr.solarxr.rpc.TrackerActionBehaviour
|
||||
import dev.slimevr.solarxr.rpc.TelemetryBehaviour
|
||||
import dev.slimevr.solarxr.rpc.TimeoutSettingsBehaviour
|
||||
import dev.slimevr.solarxr.rpc.TrackerActionBehaviour
|
||||
import dev.slimevr.solarxr.rpc.TrackerImuTelemetryBehaviour
|
||||
import dev.slimevr.solarxr.rpc.TrackingChecklistBehaviour
|
||||
import dev.slimevr.solarxr.rpc.UpdateTrackerBehaviour
|
||||
|
||||
@@ -39,7 +39,6 @@ import dev.slimevr.skeleton.buildBones
|
||||
import dev.slimevr.solarxr.rpc.ServerInfos
|
||||
import dev.slimevr.stepmounting.StepMountingManager
|
||||
import dev.slimevr.stepmounting.StepMountingState
|
||||
import dev.slimevr.trackeraction.TrackerActionManager
|
||||
import dev.slimevr.tracker.Motion
|
||||
import dev.slimevr.tracker.SessionCalibration
|
||||
import dev.slimevr.tracker.StayAlignedData
|
||||
@@ -48,6 +47,7 @@ import dev.slimevr.tracker.TrackerBehaviour
|
||||
import dev.slimevr.tracker.behaviours.TrackerRotationRefreshBehaviour
|
||||
import dev.slimevr.tracker.behaviours.TrackerStaleCalibrationBehaviour
|
||||
import dev.slimevr.tracker.behaviours.TrackerTpsBehaviour
|
||||
import dev.slimevr.trackeraction.TrackerActionManager
|
||||
import dev.slimevr.trackingchecklist.TrackingChecklist
|
||||
import dev.slimevr.udp.UdpPeer
|
||||
import dev.slimevr.udp.UdpServer
|
||||
|
||||
Reference in new issue
Block a user