summaryrefslogtreecommitdiffstats
path: root/src/core/frontend
diff options
context:
space:
mode:
authorZach Hilman <zachhilman@gmail.com>2018-11-02 02:52:51 +0100
committerZach Hilman <zachhilman@gmail.com>2018-11-19 05:21:33 +0100
commit152422bab1382575e951c1c11b5de3013b8b402a (patch)
tree4570cf52793caa2bd7bf1971f2c7dd945889112d /src/core/frontend
parentAdded missing start/end touch attributes to touchscreen (diff)
downloadyuzu-152422bab1382575e951c1c11b5de3013b8b402a.tar
yuzu-152422bab1382575e951c1c11b5de3013b8b402a.tar.gz
yuzu-152422bab1382575e951c1c11b5de3013b8b402a.tar.bz2
yuzu-152422bab1382575e951c1c11b5de3013b8b402a.tar.lz
yuzu-152422bab1382575e951c1c11b5de3013b8b402a.tar.xz
yuzu-152422bab1382575e951c1c11b5de3013b8b402a.tar.zst
yuzu-152422bab1382575e951c1c11b5de3013b8b402a.zip
Diffstat (limited to 'src/core/frontend')
-rw-r--r--src/core/frontend/input.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/core/frontend/input.h b/src/core/frontend/input.h
index 39bdf4e21..16fdcd376 100644
--- a/src/core/frontend/input.h
+++ b/src/core/frontend/input.h
@@ -132,4 +132,11 @@ using MotionDevice = InputDevice<std::tuple<Math::Vec3<float>, Math::Vec3<float>
*/
using TouchDevice = InputDevice<std::tuple<float, float, bool>>;
+/**
+ * A mouse device is an input device that returns a tuple of two floats and four ints.
+ * The first two floats are X and Y device coordinates of the mouse (from 0-1).
+ * The s32s are the mouse wheel.
+ */
+using MouseDevice = InputDevice<std::tuple<float, float, s32, s32>>;
+
} // namespace Input