diff options
| author | 2021-10-22 23:04:06 -0500 | |
|---|---|---|
| committer | 2021-11-24 20:30:25 -0600 | |
| commit | b564f024f0be5023cf13fb2fca953ea6c1feeeb6 (patch) | |
| tree | bb2fb272058a239a345856d4b34389791ea0a783 /src/core/hid/emulated_console.h | |
| parent | service/hid: Match shared memory closer to HW (diff) | |
| download | yuzu-b564f024f0be5023cf13fb2fca953ea6c1feeeb6.tar.gz yuzu-b564f024f0be5023cf13fb2fca953ea6c1feeeb6.tar.xz yuzu-b564f024f0be5023cf13fb2fca953ea6c1feeeb6.zip | |
Morph review first wave
Diffstat (limited to 'src/core/hid/emulated_console.h')
| -rw-r--r-- | src/core/hid/emulated_console.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/core/hid/emulated_console.h b/src/core/hid/emulated_console.h index c48d25794..f26f24f2e 100644 --- a/src/core/hid/emulated_console.h +++ b/src/core/hid/emulated_console.h | |||
| @@ -20,7 +20,7 @@ | |||
| 20 | namespace Core::HID { | 20 | namespace Core::HID { |
| 21 | 21 | ||
| 22 | struct ConsoleMotionInfo { | 22 | struct ConsoleMotionInfo { |
| 23 | Input::MotionStatus raw_status; | 23 | Input::MotionStatus raw_status{}; |
| 24 | MotionInput emulated{}; | 24 | MotionInput emulated{}; |
| 25 | }; | 25 | }; |
| 26 | 26 | ||
| @@ -34,21 +34,21 @@ using ConsoleMotionValues = ConsoleMotionInfo; | |||
| 34 | using TouchValues = std::array<Input::TouchStatus, 16>; | 34 | using TouchValues = std::array<Input::TouchStatus, 16>; |
| 35 | 35 | ||
| 36 | struct TouchFinger { | 36 | struct TouchFinger { |
| 37 | u64_le last_touch{}; | 37 | u64 last_touch{}; |
| 38 | Common::Point<float> position{}; | 38 | Common::Point<float> position{}; |
| 39 | u32_le id{}; | 39 | u32 id{}; |
| 40 | bool pressed{}; | ||
| 41 | TouchAttribute attribute{}; | 40 | TouchAttribute attribute{}; |
| 41 | bool pressed{}; | ||
| 42 | }; | 42 | }; |
| 43 | 43 | ||
| 44 | // Contains all motion related data that is used on the services | 44 | // Contains all motion related data that is used on the services |
| 45 | struct ConsoleMotion { | 45 | struct ConsoleMotion { |
| 46 | bool is_at_rest{}; | ||
| 47 | Common::Vec3f accel{}; | 46 | Common::Vec3f accel{}; |
| 48 | Common::Vec3f gyro{}; | 47 | Common::Vec3f gyro{}; |
| 49 | Common::Vec3f rotation{}; | 48 | Common::Vec3f rotation{}; |
| 50 | std::array<Common::Vec3f, 3> orientation{}; | 49 | std::array<Common::Vec3f, 3> orientation{}; |
| 51 | Common::Quaternion<f32> quaternion{}; | 50 | Common::Quaternion<f32> quaternion{}; |
| 51 | bool is_at_rest{}; | ||
| 52 | }; | 52 | }; |
| 53 | 53 | ||
| 54 | using TouchFingerState = std::array<TouchFinger, 16>; | 54 | using TouchFingerState = std::array<TouchFinger, 16>; |