|
@@ -142,7 +142,8 @@ public:
|
|
virtual Ref<InputEvent> xformed_by(const Transform2D &p_xform, const Vector2 &p_local_ofs = Vector2()) const;
|
|
virtual Ref<InputEvent> xformed_by(const Transform2D &p_xform, const Vector2 &p_local_ofs = Vector2()) const;
|
|
|
|
|
|
virtual bool action_match(const Ref<InputEvent> &p_event, bool *p_pressed, float *p_strength, float *p_raw_strength, float p_deadzone) const;
|
|
virtual bool action_match(const Ref<InputEvent> &p_event, bool *p_pressed, float *p_strength, float *p_raw_strength, float p_deadzone) const;
|
|
- virtual bool shortcut_match(const Ref<InputEvent> &p_event) const;
|
|
|
|
|
|
+ virtual bool is_match(const Ref<InputEvent> &p_event, bool p_exact_match = true) const;
|
|
|
|
+
|
|
virtual bool is_action_type() const;
|
|
virtual bool is_action_type() const;
|
|
|
|
|
|
virtual bool accumulate(const Ref<InputEvent> &p_event) { return false; }
|
|
virtual bool accumulate(const Ref<InputEvent> &p_event) { return false; }
|
|
@@ -212,6 +213,8 @@ public:
|
|
|
|
|
|
void set_modifiers_from_event(const InputEventWithModifiers *event);
|
|
void set_modifiers_from_event(const InputEventWithModifiers *event);
|
|
|
|
|
|
|
|
+ uint32_t get_modifiers_mask() const;
|
|
|
|
+
|
|
virtual String as_text() const override;
|
|
virtual String as_text() const override;
|
|
virtual String to_string() override;
|
|
virtual String to_string() override;
|
|
|
|
|
|
@@ -252,7 +255,7 @@ public:
|
|
uint32_t get_physical_keycode_with_modifiers() const;
|
|
uint32_t get_physical_keycode_with_modifiers() const;
|
|
|
|
|
|
virtual bool action_match(const Ref<InputEvent> &p_event, bool *p_pressed, float *p_strength, float *p_raw_strength, float p_deadzone) const override;
|
|
virtual bool action_match(const Ref<InputEvent> &p_event, bool *p_pressed, float *p_strength, float *p_raw_strength, float p_deadzone) const override;
|
|
- virtual bool shortcut_match(const Ref<InputEvent> &p_event) const override;
|
|
|
|
|
|
+ virtual bool is_match(const Ref<InputEvent> &p_event, bool p_exact_match = true) const override;
|
|
|
|
|
|
virtual bool is_action_type() const override { return true; }
|
|
virtual bool is_action_type() const override { return true; }
|
|
|
|
|
|
@@ -313,7 +316,9 @@ public:
|
|
bool is_double_click() const;
|
|
bool is_double_click() const;
|
|
|
|
|
|
virtual Ref<InputEvent> xformed_by(const Transform2D &p_xform, const Vector2 &p_local_ofs = Vector2()) const override;
|
|
virtual Ref<InputEvent> xformed_by(const Transform2D &p_xform, const Vector2 &p_local_ofs = Vector2()) const override;
|
|
|
|
+
|
|
virtual bool action_match(const Ref<InputEvent> &p_event, bool *p_pressed, float *p_strength, float *p_raw_strength, float p_deadzone) const override;
|
|
virtual bool action_match(const Ref<InputEvent> &p_event, bool *p_pressed, float *p_strength, float *p_raw_strength, float p_deadzone) const override;
|
|
|
|
+ virtual bool is_match(const Ref<InputEvent> &p_event, bool p_exact_match = true) const override;
|
|
|
|
|
|
virtual bool is_action_type() const override { return true; }
|
|
virtual bool is_action_type() const override { return true; }
|
|
virtual String as_text() const override;
|
|
virtual String as_text() const override;
|
|
@@ -373,6 +378,7 @@ public:
|
|
virtual bool is_pressed() const override;
|
|
virtual bool is_pressed() const override;
|
|
|
|
|
|
virtual bool action_match(const Ref<InputEvent> &p_event, bool *p_pressed, float *p_strength, float *p_raw_strength, float p_deadzone) const override;
|
|
virtual bool action_match(const Ref<InputEvent> &p_event, bool *p_pressed, float *p_strength, float *p_raw_strength, float p_deadzone) const override;
|
|
|
|
+ virtual bool is_match(const Ref<InputEvent> &p_event, bool p_exact_match = true) const override;
|
|
|
|
|
|
virtual bool is_action_type() const override { return true; }
|
|
virtual bool is_action_type() const override { return true; }
|
|
virtual String as_text() const override;
|
|
virtual String as_text() const override;
|
|
@@ -401,9 +407,10 @@ public:
|
|
float get_pressure() const;
|
|
float get_pressure() const;
|
|
|
|
|
|
virtual bool action_match(const Ref<InputEvent> &p_event, bool *p_pressed, float *p_strength, float *p_raw_strength, float p_deadzone) const override;
|
|
virtual bool action_match(const Ref<InputEvent> &p_event, bool *p_pressed, float *p_strength, float *p_raw_strength, float p_deadzone) const override;
|
|
- virtual bool shortcut_match(const Ref<InputEvent> &p_event) const override;
|
|
|
|
|
|
+ virtual bool is_match(const Ref<InputEvent> &p_event, bool p_exact_match = true) const override;
|
|
|
|
|
|
virtual bool is_action_type() const override { return true; }
|
|
virtual bool is_action_type() const override { return true; }
|
|
|
|
+
|
|
virtual String as_text() const override;
|
|
virtual String as_text() const override;
|
|
virtual String to_string() override;
|
|
virtual String to_string() override;
|
|
|
|
|
|
@@ -491,9 +498,10 @@ public:
|
|
virtual bool is_action(const StringName &p_action) const;
|
|
virtual bool is_action(const StringName &p_action) const;
|
|
|
|
|
|
virtual bool action_match(const Ref<InputEvent> &p_event, bool *p_pressed, float *p_strength, float *p_raw_strength, float p_deadzone) const override;
|
|
virtual bool action_match(const Ref<InputEvent> &p_event, bool *p_pressed, float *p_strength, float *p_raw_strength, float p_deadzone) const override;
|
|
|
|
+ virtual bool is_match(const Ref<InputEvent> &p_event, bool p_exact_match = true) const override;
|
|
|
|
|
|
- virtual bool shortcut_match(const Ref<InputEvent> &p_event) const override;
|
|
|
|
virtual bool is_action_type() const override { return true; }
|
|
virtual bool is_action_type() const override { return true; }
|
|
|
|
+
|
|
virtual String as_text() const override;
|
|
virtual String as_text() const override;
|
|
virtual String to_string() override;
|
|
virtual String to_string() override;
|
|
|
|
|