summaryrefslogtreecommitdiff
path: root/src/core/hid/emulated_console.h
diff options
context:
space:
mode:
authorGravatar german772021-10-22 23:04:06 -0500
committerGravatar Narr the Reg2021-11-24 20:30:25 -0600
commitb564f024f0be5023cf13fb2fca953ea6c1feeeb6 (patch)
treebb2fb272058a239a345856d4b34389791ea0a783 /src/core/hid/emulated_console.h
parentservice/hid: Match shared memory closer to HW (diff)
downloadyuzu-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.h10
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 @@
20namespace Core::HID { 20namespace Core::HID {
21 21
22struct ConsoleMotionInfo { 22struct 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;
34using TouchValues = std::array<Input::TouchStatus, 16>; 34using TouchValues = std::array<Input::TouchStatus, 16>;
35 35
36struct TouchFinger { 36struct 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
45struct ConsoleMotion { 45struct 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
54using TouchFingerState = std::array<TouchFinger, 16>; 54using TouchFingerState = std::array<TouchFinger, 16>;