Skip to content

Commit 038c18e

Browse files
committed
Add MotionEvent.rotation_rate
1 parent bea5012 commit 038c18e

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

lighthouse-protocol/src/input/motion_event.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use serde::{Deserialize, Serialize};
22

3-
use crate::Vec3;
3+
use crate::{Rot3, Vec3};
44

55
use super::EventSource;
66

@@ -14,9 +14,8 @@ pub struct MotionEvent {
1414
pub acceleration: Option<Vec3<Option<f64>>>,
1515
/// The acceleration in 3D space (including gravity) in m/s^2.
1616
pub acceleration_including_gravity: Option<Vec3<Option<f64>>>,
17-
18-
// TODO: rotation rate
19-
17+
/// The rotation rate in deg/s on the three rotation axes.
18+
pub rotation_rate: Option<Rot3<Option<f64>>>,
2019
/// The granularity of these events in ms.
2120
pub interval: f64,
2221
}

0 commit comments

Comments
 (0)