summaryrefslogtreecommitdiffstats
path: root/src/core/frontend/input.h
diff options
context:
space:
mode:
authorwwylele <wwylele@gmail.com>2017-01-20 21:46:39 +0100
committerwwylele <wwylele@gmail.com>2017-03-01 22:30:57 +0100
commit1d1329af23221be31c244889609415e0fb0b2641 (patch)
tree4206317bc0e2078b1a1d4eef808e2bd475c47512 /src/core/frontend/input.h
parentInput: add device and factory template (diff)
downloadyuzu-1d1329af23221be31c244889609415e0fb0b2641.tar
yuzu-1d1329af23221be31c244889609415e0fb0b2641.tar.gz
yuzu-1d1329af23221be31c244889609415e0fb0b2641.tar.bz2
yuzu-1d1329af23221be31c244889609415e0fb0b2641.tar.lz
yuzu-1d1329af23221be31c244889609415e0fb0b2641.tar.xz
yuzu-1d1329af23221be31c244889609415e0fb0b2641.tar.zst
yuzu-1d1329af23221be31c244889609415e0fb0b2641.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 a0c51df0c..63e64ac67 100644
--- a/src/core/frontend/input.h
+++ b/src/core/frontend/input.h
@@ -94,4 +94,10 @@ std::unique_ptr<InputDeviceType> CreateDevice(const std::string& params) {
return pair->second->Create(package);
}
+/**
+ * A button device is an input device that returns bool as status.
+ * true for pressed; false for released.
+ */
+using ButtonDevice = InputDevice<bool>;
+
} // namespace Input