summaryrefslogtreecommitdiff
path: root/core/input/input_event.h
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-05-04 13:12:17 +0200
committerGitHub <noreply@github.com>2021-05-04 13:12:17 +0200
commit4e7ca279fca892c1ceef875ef728be748ab1179b (patch)
tree61e833c205c18714d9ed0873f8dc8ca86e0d8680 /core/input/input_event.h
parent56316b27ab97acb3ce1a318ba3466c31489a1322 (diff)
parent0de9a7d8030a35415e918e9580f5926db4856ea2 (diff)
Merge pull request #47855 from aaronfranke/doubleclick
Rename `doubleclick` to `double_click`
Diffstat (limited to 'core/input/input_event.h')
-rw-r--r--core/input/input_event.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/input/input_event.h b/core/input/input_event.h
index 94aa68db33..5a33ee7b9c 100644
--- a/core/input/input_event.h
+++ b/core/input/input_event.h
@@ -294,7 +294,7 @@ class InputEventMouseButton : public InputEventMouse {
float factor = 1;
int button_index = 0;
bool pressed = false; //otherwise released
- bool doubleclick = false; //last even less than doubleclick time
+ bool double_click = false; //last even less than double click time
protected:
static void _bind_methods();
@@ -309,8 +309,8 @@ public:
void set_pressed(bool p_pressed);
virtual bool is_pressed() const override;
- void set_doubleclick(bool p_doubleclick);
- bool is_doubleclick() const;
+ void set_double_click(bool p_double_click);
+ bool is_double_click() const;
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;