summaryrefslogtreecommitdiff
path: root/core/input_map.h
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2018-04-08 09:04:14 -0300
committerGitHub <noreply@github.com>2018-04-08 09:04:14 -0300
commit47ffe107e6f0aa218f1ebbbef34043185dd4fd89 (patch)
tree056fe03eecb00ef0347d9a3097c607b06d22d6fd /core/input_map.h
parent8a84f9df0d1f487f0a36f42171cf68e8800e04d4 (diff)
parent1e28f63bcf7b465cc940af18a08855d377370ac3 (diff)
Merge pull request #17967 from Nibodhika/all-device-mode
Allows to map an action to all devices.
Diffstat (limited to 'core/input_map.h')
-rw-r--r--core/input_map.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/core/input_map.h b/core/input_map.h
index 84d90f6f2a..9f3c13c2cf 100644
--- a/core/input_map.h
+++ b/core/input_map.h
@@ -39,6 +39,11 @@ class InputMap : public Object {
GDCLASS(InputMap, Object);
public:
+ /**
+ * A special value used to signify that a given Action can be triggered by any device
+ */
+ static int ALL_DEVICES;
+
struct Action {
int id;
List<Ref<InputEvent> > inputs;