osc: remove headsetBattery parameter and change hmdBattery to float 0-1 to match OVR Toolkit (#278)

This commit is contained in:
Jay
2025-12-01 13:42:53 +11:00
committed by GitHub
parent 6b4039a764
commit f54c5decb6

View File

@@ -131,15 +131,7 @@ impl OscSender {
let parameter = match device.role {
TrackedDeviceRole::None => continue,
TrackedDeviceRole::Hmd => {
// legacy OVR Toolkit style (int)
// as of 20 Nov 2024 OVR Toolkit uses int 0-100, but this may change in a future update.
//TODO: update this once their implementation matches their docs
self.send_message(
"/avatar/parameters/hmdBattery".into(),
vec![OscType::Int((level * 100.0f32).round() as i32)],
)?;
"headset"
"hmd"
}
TrackedDeviceRole::LeftHand => {
controller_count += 1;