|
@@ -202,6 +202,7 @@ public:
|
|
|
bool is_action_pressed(const StringName &p_action, bool p_allow_echo = false) const;
|
|
|
bool is_action_released(const StringName &p_action) const;
|
|
|
float get_action_strength(const StringName &p_action) const;
|
|
|
+ float get_action_raw_strength(const StringName &p_action) const;
|
|
|
|
|
|
// To be removed someday, since they do not make sense for all events
|
|
|
virtual bool is_pressed() const;
|
|
@@ -212,7 +213,7 @@ public:
|
|
|
|
|
|
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_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_action_type() const;
|
|
|
|
|
@@ -298,7 +299,7 @@ public:
|
|
|
uint32_t get_scancode_with_modifiers() const;
|
|
|
uint32_t get_physical_scancode_with_modifiers() const;
|
|
|
|
|
|
- virtual bool action_match(const Ref<InputEvent> &p_event, bool *p_pressed, float *p_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_action_type() const { return true; }
|
|
@@ -357,7 +358,7 @@ public:
|
|
|
bool is_doubleclick() 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_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 is_action_type() const { return true; }
|
|
|
virtual String as_text() const;
|
|
@@ -414,7 +415,7 @@ public:
|
|
|
|
|
|
virtual bool is_pressed() const;
|
|
|
|
|
|
- virtual bool action_match(const Ref<InputEvent> &p_event, bool *p_pressed, float *p_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 is_action_type() const { return true; }
|
|
|
virtual String as_text() const;
|
|
@@ -441,7 +442,7 @@ public:
|
|
|
void set_pressure(float p_pressure);
|
|
|
float get_pressure() const;
|
|
|
|
|
|
- virtual bool action_match(const Ref<InputEvent> &p_event, bool *p_pressed, float *p_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_action_type() const { return true; }
|
|
@@ -526,7 +527,7 @@ public:
|
|
|
|
|
|
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_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_action_type() const { return true; }
|