diff options
| author | 2021-05-17 14:59:33 -0400 | |
|---|---|---|
| committer | 2021-05-18 03:32:38 -0400 | |
| commit | 60831eabd98ed3317c3740d7d03445b9afe8a5e2 (patch) | |
| tree | 41f93cde9d1371f487e5790528ca238070f297a7 /src | |
| parent | Merge pull request #6328 from Morph1984/enforce-c4715 (diff) | |
| download | yuzu-60831eabd98ed3317c3740d7d03445b9afe8a5e2.tar.gz yuzu-60831eabd98ed3317c3740d7d03445b9afe8a5e2.tar.xz yuzu-60831eabd98ed3317c3740d7d03445b9afe8a5e2.zip | |
hid/gesture: Rename Points to Point
This only represents a single point
Diffstat (limited to 'src')
| -rw-r--r-- | src/core/hle/service/hid/controllers/gesture.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/core/hle/service/hid/controllers/gesture.h b/src/core/hle/service/hid/controllers/gesture.h index f46e29411..21123c46c 100644 --- a/src/core/hle/service/hid/controllers/gesture.h +++ b/src/core/hle/service/hid/controllers/gesture.h | |||
| @@ -63,11 +63,11 @@ private: | |||
| 63 | }; | 63 | }; |
| 64 | static_assert(sizeof(Attribute) == 4, "Attribute is an invalid size"); | 64 | static_assert(sizeof(Attribute) == 4, "Attribute is an invalid size"); |
| 65 | 65 | ||
| 66 | struct Points { | 66 | struct Point { |
| 67 | s32_le x; | 67 | s32_le x; |
| 68 | s32_le y; | 68 | s32_le y; |
| 69 | }; | 69 | }; |
| 70 | static_assert(sizeof(Points) == 8, "Points is an invalid size"); | 70 | static_assert(sizeof(Point) == 8, "Point is an invalid size"); |
| 71 | 71 | ||
| 72 | struct GestureState { | 72 | struct GestureState { |
| 73 | s64_le sampling_number; | 73 | s64_le sampling_number; |
| @@ -85,7 +85,7 @@ private: | |||
| 85 | f32 scale; | 85 | f32 scale; |
| 86 | f32 rotation_angle; | 86 | f32 rotation_angle; |
| 87 | s32_le point_count; | 87 | s32_le point_count; |
| 88 | std::array<Points, 4> points; | 88 | std::array<Point, 4> points; |
| 89 | }; | 89 | }; |
| 90 | static_assert(sizeof(GestureState) == 0x68, "GestureState is an invalid size"); | 90 | static_assert(sizeof(GestureState) == 0x68, "GestureState is an invalid size"); |
| 91 | 91 | ||
| @@ -102,9 +102,9 @@ private: | |||
| 102 | }; | 102 | }; |
| 103 | 103 | ||
| 104 | struct GestureProperties { | 104 | struct GestureProperties { |
| 105 | std::array<Points, MAX_POINTS> points{}; | 105 | std::array<Point, MAX_POINTS> points{}; |
| 106 | std::size_t active_points{}; | 106 | std::size_t active_points{}; |
| 107 | Points mid_point{}; | 107 | Point mid_point{}; |
| 108 | s64_le detection_count{}; | 108 | s64_le detection_count{}; |
| 109 | u64_le delta_time{}; | 109 | u64_le delta_time{}; |
| 110 | f32 average_distance{}; | 110 | f32 average_distance{}; |