diff options
| author | Rémi Verschelde | 2017-02-12 23:12:18 +0100 |
|---|---|---|
| committer | GitHub | 2017-02-12 23:12:18 +0100 |
| commit | 53b7bbfccefe98060633a31ee8f3be3297fc3f15 (patch) | |
| tree | d6cfda19debbf806b3c037199f1612180ae1518f /scene/2d/screen_button.h | |
| parent | d791f5f06ede101ac1990e1f5da05af589c681a2 (diff) | |
| parent | 49e7e2cd2ac832c333a151ab31ef543fc4a31b28 (diff) | |
| download | godot-53b7bbfccefe98060633a31ee8f3be3297fc3f15.tar.gz godot-53b7bbfccefe98060633a31ee8f3be3297fc3f15.tar.zst godot-53b7bbfccefe98060633a31ee8f3be3297fc3f15.zip | |
Merge pull request #7722 from RandomShaper/improve-touch-button
Fix touch button issues
Diffstat (limited to 'scene/2d/screen_button.h')
| -rw-r--r-- | scene/2d/screen_button.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scene/2d/screen_button.h b/scene/2d/screen_button.h index 5ebc282f6..8ce378c66 100644 --- a/scene/2d/screen_button.h +++ b/scene/2d/screen_button.h @@ -56,12 +56,16 @@ private: StringName action; bool passby_press; int finger_pressed; + bool allow_repress; int action_id; VisibilityMode visibility; void _input(const InputEvent& p_Event); + void _press(int p_finger_pressed); + void _release(bool p_exiting_tree=false); + protected: void _notification(int p_what); |
