aboutsummaryrefslogtreecommitdiff
path: root/scene/2d/screen_button.h
diff options
context:
space:
mode:
authorRémi Verschelde2017-02-12 23:12:18 +0100
committerGitHub2017-02-12 23:12:18 +0100
commit53b7bbfccefe98060633a31ee8f3be3297fc3f15 (patch)
treed6cfda19debbf806b3c037199f1612180ae1518f /scene/2d/screen_button.h
parentd791f5f06ede101ac1990e1f5da05af589c681a2 (diff)
parent49e7e2cd2ac832c333a151ab31ef543fc4a31b28 (diff)
downloadgodot-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.h4
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);