summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorGravatar german772021-11-01 19:49:14 -0600
committerGravatar Narr the Reg2021-11-24 20:30:27 -0600
commit136eb9c4c2b2425c2dd45a79cf444dee7170714d (patch)
tree74a055a08126fdd33b2071baa08125177847db6e /src/common
parentsecond commit lion review (diff)
downloadyuzu-136eb9c4c2b2425c2dd45a79cf444dee7170714d.tar.gz
yuzu-136eb9c4c2b2425c2dd45a79cf444dee7170714d.tar.xz
yuzu-136eb9c4c2b2425c2dd45a79cf444dee7170714d.zip
core/hid: Fully emulate motion from button
Diffstat (limited to 'src/common')
-rw-r--r--src/common/input.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/common/input.h b/src/common/input.h
index 12acd8785..8f29026a1 100644
--- a/src/common/input.h
+++ b/src/common/input.h
@@ -110,9 +110,14 @@ struct MotionSensor {
110}; 110};
111 111
112struct MotionStatus { 112struct MotionStatus {
113 // Gyroscope vector measurement in radians/s.
113 MotionSensor gyro{}; 114 MotionSensor gyro{};
115 // Acceleration vector measurement in G force
114 MotionSensor accel{}; 116 MotionSensor accel{};
117 // Time since last measurement in microseconds
115 u64 delta_timestamp{}; 118 u64 delta_timestamp{};
119 // Request to update after reading the value
120 bool force_update{};
116}; 121};
117 122
118struct TouchStatus { 123struct TouchStatus {