summaryrefslogtreecommitdiff
path: root/core/input/input_event.h
diff options
context:
space:
mode:
Diffstat (limited to 'core/input/input_event.h')
-rw-r--r--core/input/input_event.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/core/input/input_event.h b/core/input/input_event.h
index dc86bddf8e..52b785c9a1 100644
--- a/core/input/input_event.h
+++ b/core/input/input_event.h
@@ -208,6 +208,8 @@ public:
class InputEventWithModifiers : public InputEventFromWindow {
GDCLASS(InputEventWithModifiers, InputEventFromWindow);
+ bool store_command = true;
+
bool shift = false;
bool alt = false;
#ifdef APPLE_STYLE_KEYS
@@ -227,8 +229,12 @@ class InputEventWithModifiers : public InputEventFromWindow {
protected:
static void _bind_methods();
+ virtual void _validate_property(PropertyInfo &property) const override;
public:
+ void set_store_command(bool p_enabled);
+ bool is_storing_command() const;
+
void set_shift(bool p_enabled);
bool get_shift() const;