summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/hid/controllers/touchscreen.h
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2021-05-28 13:58:55 +0200
committerLioncash <mathew1800@gmail.com>2021-05-28 14:15:22 +0200
commit5554de39332cb2647406a3159b5fefc409affb54 (patch)
treea9a4b703288693a847df0e6c3d18e3618107b80d /src/core/hle/service/hid/controllers/touchscreen.h
parentcommon: Extract point into a common struct (diff)
downloadyuzu-5554de39332cb2647406a3159b5fefc409affb54.tar
yuzu-5554de39332cb2647406a3159b5fefc409affb54.tar.gz
yuzu-5554de39332cb2647406a3159b5fefc409affb54.tar.bz2
yuzu-5554de39332cb2647406a3159b5fefc409affb54.tar.lz
yuzu-5554de39332cb2647406a3159b5fefc409affb54.tar.xz
yuzu-5554de39332cb2647406a3159b5fefc409affb54.tar.zst
yuzu-5554de39332cb2647406a3159b5fefc409affb54.zip
Diffstat (limited to 'src/core/hle/service/hid/controllers/touchscreen.h')
-rw-r--r--src/core/hle/service/hid/controllers/touchscreen.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/core/hle/service/hid/controllers/touchscreen.h b/src/core/hle/service/hid/controllers/touchscreen.h
index 2869d0cfd..ef2becefd 100644
--- a/src/core/hle/service/hid/controllers/touchscreen.h
+++ b/src/core/hle/service/hid/controllers/touchscreen.h
@@ -7,6 +7,7 @@
#include "common/bit_field.h"
#include "common/common_funcs.h"
#include "common/common_types.h"
+#include "common/point.h"
#include "common/swap.h"
#include "core/frontend/input.h"
#include "core/hle/service/hid/controllers/controller_base.h"
@@ -55,8 +56,7 @@ private:
u64_le delta_time;
Attributes attribute;
u32_le finger;
- u32_le x;
- u32_le y;
+ Common::Point<u32_le> position;
u32_le diameter_x;
u32_le diameter_y;
u32_le rotation_angle;
@@ -81,8 +81,7 @@ private:
struct Finger {
u64_le last_touch{};
- float x{};
- float y{};
+ Common::Point<float> position;
u32_le id{};
bool pressed{};
Attributes attribute;