summaryrefslogtreecommitdiffstats
path: root/src/core/frontend
diff options
context:
space:
mode:
authorwwylele <wwylele@gmail.com>2017-08-08 20:34:17 +0200
committerwwylele <wwylele@gmail.com>2017-08-24 12:56:43 +0200
commitc84e60b4700778db236d3177714a076c515f9ce7 (patch)
tree6b98955761908bae410049c0609f942da23c8e82 /src/core/frontend
parentMerge pull request #2839 from Subv/global_kernel_lock (diff)
downloadyuzu-c84e60b4700778db236d3177714a076c515f9ce7.tar
yuzu-c84e60b4700778db236d3177714a076c515f9ce7.tar.gz
yuzu-c84e60b4700778db236d3177714a076c515f9ce7.tar.bz2
yuzu-c84e60b4700778db236d3177714a076c515f9ce7.tar.lz
yuzu-c84e60b4700778db236d3177714a076c515f9ce7.tar.xz
yuzu-c84e60b4700778db236d3177714a076c515f9ce7.tar.zst
yuzu-c84e60b4700778db236d3177714a076c515f9ce7.zip
Diffstat (limited to '')
-rw-r--r--src/core/frontend/input.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/frontend/input.h b/src/core/frontend/input.h
index 5916a901d..8c256beb5 100644
--- a/src/core/frontend/input.h
+++ b/src/core/frontend/input.h
@@ -126,4 +126,10 @@ using AnalogDevice = InputDevice<std::tuple<float, float>>;
*/
using MotionDevice = InputDevice<std::tuple<Math::Vec3<float>, Math::Vec3<float>>>;
+/**
+ * A touch device is an input device that returns a tuple of two floats and a bool. The floats are
+ * x and y coordinates in the range 0.0 - 1.0, and the bool indicates whether it is pressed.
+ */
+using TouchDevice = InputDevice<std::tuple<float, float, bool>>;
+
} // namespace Input