diff options
| author | 2021-11-01 19:49:14 -0600 | |
|---|---|---|
| committer | 2021-11-24 20:30:27 -0600 | |
| commit | 136eb9c4c2b2425c2dd45a79cf444dee7170714d (patch) | |
| tree | 74a055a08126fdd33b2071baa08125177847db6e /src/common/input.h | |
| parent | second commit lion review (diff) | |
| download | yuzu-136eb9c4c2b2425c2dd45a79cf444dee7170714d.tar.gz yuzu-136eb9c4c2b2425c2dd45a79cf444dee7170714d.tar.xz yuzu-136eb9c4c2b2425c2dd45a79cf444dee7170714d.zip | |
core/hid: Fully emulate motion from button
Diffstat (limited to 'src/common/input.h')
| -rw-r--r-- | src/common/input.h | 5 |
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 | ||
| 112 | struct MotionStatus { | 112 | struct 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 | ||
| 118 | struct TouchStatus { | 123 | struct TouchStatus { |