summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorGravatar german2020-11-17 22:55:09 -0600
committerGravatar german2020-11-25 23:59:30 -0600
commite46f0e084c73420f8c76c514079952ca0acf1ebe (patch)
tree9d17776f73ffee5a42e20a7d4b12409e830cce26 /src/core
parentMerge pull request #4308 from ReinUsesLisp/maxwell-3d-funcs (diff)
downloadyuzu-e46f0e084c73420f8c76c514079952ca0acf1ebe.tar.gz
yuzu-e46f0e084c73420f8c76c514079952ca0acf1ebe.tar.xz
yuzu-e46f0e084c73420f8c76c514079952ca0acf1ebe.zip
Implement full mouse support
Diffstat (limited to 'src/core')
-rw-r--r--src/core/frontend/input.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/core/frontend/input.h b/src/core/frontend/input.h
index 25ac5af46..93251e3aa 100644
--- a/src/core/frontend/input.h
+++ b/src/core/frontend/input.h
@@ -161,10 +161,15 @@ using MotionStatus = std::tuple<Common::Vec3<float>, Common::Vec3<float>, Common
161using MotionDevice = InputDevice<MotionStatus>; 161using MotionDevice = InputDevice<MotionStatus>;
162 162
163/** 163/**
164 * A touch device is an input device that returns a tuple of two floats and a bool. The floats are 164 * A touch status is an object that returns a tuple of two floats and a bool. The floats are
165 * x and y coordinates in the range 0.0 - 1.0, and the bool indicates whether it is pressed. 165 * x and y coordinates in the range 0.0 - 1.0, and the bool indicates whether it is pressed.
166 */ 166 */
167using TouchDevice = InputDevice<std::tuple<float, float, bool>>; 167using TouchStatus = std::tuple<float, float, bool>;
168
169/**
170 * A touch device is an input device that returns a touch status object
171 */
172using TouchDevice = InputDevice<TouchStatus>;
168 173
169/** 174/**
170 * A mouse device is an input device that returns a tuple of two floats and four ints. 175 * A mouse device is an input device that returns a tuple of two floats and four ints.