mirror of
https://github.com/SlimeVR/SlimeVR-Server.git
synced 2026-11-30 13:52:47 -08:00
Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d3673e65c3 |
No files matched your search
@@ -586,6 +586,8 @@ settings-driver-bones-description = Which bones this output sends is configured
|
|||||||
settings-driver-bones-link = Open Bone Routing
|
settings-driver-bones-link = Open Bone Routing
|
||||||
settings-driver-velocity = Send velocity
|
settings-driver-velocity = Send velocity
|
||||||
settings-driver-velocity-description = Send linear and angular velocity data to the driver. Allows SteamVR/Monado tracker pose prediction and compatibility with applications that expect this data.
|
settings-driver-velocity-description = Send linear and angular velocity data to the driver. Allows SteamVR/Monado tracker pose prediction and compatibility with applications that expect this data.
|
||||||
|
settings-driver-controller_tracking_fallback = Controller tracking fallback
|
||||||
|
settings-driver-controller_tracking_fallback-description = Override your controllers' tracking, with trackers mounted on your arms and hands, when your controllers lose tracking
|
||||||
|
|
||||||
## Tracker mechanics
|
## Tracker mechanics
|
||||||
settings-general-mounting_method = Mounting calibration method
|
settings-general-mounting_method = Mounting calibration method
|
||||||
|
|||||||
@@ -33,12 +33,14 @@ import { defineSettingsPage } from '@/components/settings/settings-definitions';
|
|||||||
type DriverForm = {
|
type DriverForm = {
|
||||||
enabled: boolean;
|
enabled: boolean;
|
||||||
sendVelocity: boolean;
|
sendVelocity: boolean;
|
||||||
|
controllerTrackingFallback: boolean;
|
||||||
};
|
};
|
||||||
|
|
||||||
function toForm(settings: DriverSettingsResponseT): DriverForm {
|
function toForm(settings: DriverSettingsResponseT): DriverForm {
|
||||||
return {
|
return {
|
||||||
enabled: settings.enabled,
|
enabled: settings.enabled,
|
||||||
sendVelocity: settings.sendVelocity,
|
sendVelocity: settings.sendVelocity,
|
||||||
|
controllerTrackingFallback: settings.controllerTrackingFallback,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -108,6 +110,11 @@ export const driverSettingsPage = defineSettingsPage({
|
|||||||
title: 'settings-driver-velocity',
|
title: 'settings-driver-velocity',
|
||||||
description: 'settings-driver-velocity-description',
|
description: 'settings-driver-velocity-description',
|
||||||
},
|
},
|
||||||
|
controllerTrackingFallback: {
|
||||||
|
title: 'settings-driver-controller_tracking_fallback',
|
||||||
|
description:
|
||||||
|
'settings-driver-controller_tracking_fallback-description',
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@@ -137,6 +144,7 @@ export function DriverSettings() {
|
|||||||
const settingsReq = new ChangeDriverSettingsRequestT();
|
const settingsReq = new ChangeDriverSettingsRequestT();
|
||||||
settingsReq.enabled = values.enabled;
|
settingsReq.enabled = values.enabled;
|
||||||
settingsReq.sendVelocity = values.sendVelocity;
|
settingsReq.sendVelocity = values.sendVelocity;
|
||||||
|
settingsReq.controllerTrackingFallback = values.controllerTrackingFallback;
|
||||||
sendRPCPacket(RpcMessage.ChangeDriverSettingsRequest, settingsReq);
|
sendRPCPacket(RpcMessage.ChangeDriverSettingsRequest, settingsReq);
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -243,6 +251,19 @@ export function DriverSettings() {
|
|||||||
/>
|
/>
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
|
<SettingRow
|
||||||
|
setting={groups.data.rows.controllerTrackingFallback}
|
||||||
|
controlId="driver-controller-tracking-fallback"
|
||||||
|
{...resetTo('controllerTrackingFallback')}
|
||||||
|
control={
|
||||||
|
<CheckBox
|
||||||
|
variant="toggle"
|
||||||
|
control={control}
|
||||||
|
name="controllerTrackingFallback"
|
||||||
|
id="driver-controller-tracking-fallback"
|
||||||
|
/>
|
||||||
|
}
|
||||||
|
/>
|
||||||
</SettingsGroup>
|
</SettingsGroup>
|
||||||
</SettingsAdvanced>
|
</SettingsAdvanced>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -46,6 +46,7 @@ data class BoneRoutingConfig(
|
|||||||
data class DriverConfig(
|
data class DriverConfig(
|
||||||
val enabled: Boolean = true,
|
val enabled: Boolean = true,
|
||||||
val sendVelocity: Boolean = false,
|
val sendVelocity: Boolean = false,
|
||||||
|
val controllerTrackingFallback: Boolean = false,
|
||||||
)
|
)
|
||||||
|
|
||||||
// Used in TrackerActionConfig
|
// Used in TrackerActionConfig
|
||||||
|
|||||||
@@ -24,6 +24,7 @@ import solarxr_protocol.rpc.RoutingOutputState
|
|||||||
internal fun buildDriverSettingsResponse(config: DriverConfig) = DriverSettingsResponse(
|
internal fun buildDriverSettingsResponse(config: DriverConfig) = DriverSettingsResponse(
|
||||||
enabled = config.enabled,
|
enabled = config.enabled,
|
||||||
sendVelocity = config.sendVelocity,
|
sendVelocity = config.sendVelocity,
|
||||||
|
controllerTrackingFallback = config.controllerTrackingFallback,
|
||||||
)
|
)
|
||||||
|
|
||||||
class DriverSettingsBehaviour(
|
class DriverSettingsBehaviour(
|
||||||
@@ -50,6 +51,7 @@ class DriverSettingsBehaviour(
|
|||||||
driverConfig = driverConfig.copy(
|
driverConfig = driverConfig.copy(
|
||||||
enabled = req.enabled,
|
enabled = req.enabled,
|
||||||
sendVelocity = req.sendVelocity,
|
sendVelocity = req.sendVelocity,
|
||||||
|
controllerTrackingFallback = req.controllerTrackingFallback,
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
},
|
},
|
||||||
|
|||||||
+1
-1
Submodule solarxr-protocol updated: 77cabf5dd8...4c19ae41d3.
Reference in new issue
Block a user