summaryrefslogtreecommitdiffstats
path: root/scene/2d/screen_button.cpp
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2014-08-14 10:31:38 -0300
committerJuan Linietsky <reduzio@gmail.com>2014-08-14 10:31:38 -0300
commit2ee4ac183babedd679e901b0158f5268556deceb (patch)
treec0b5215b7ab17186835e1919912fa09de7301bfb /scene/2d/screen_button.cpp
parentc3e1d7b7c788530dc69e973352763a90da05d4e1 (diff)
downloadredot-engine-2ee4ac183babedd679e901b0158f5268556deceb.tar.gz
Little Bits
-=-=-=-=-=- -Fixed small bugs all around -Added ability to show/hide entire sections of the spatial (3D) tree -WIP new vehicle (not ready yet) based on Bullet
Diffstat (limited to 'scene/2d/screen_button.cpp')
-rw-r--r--scene/2d/screen_button.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/scene/2d/screen_button.cpp b/scene/2d/screen_button.cpp
index 9d0c9f3d1a..92d6954d97 100644
--- a/scene/2d/screen_button.cpp
+++ b/scene/2d/screen_button.cpp
@@ -129,6 +129,9 @@ void TouchScreenButton::_input(const InputEvent& p_event) {
if (!get_scene())
return;
+ if (p_event.device != 0)
+ return;
+
if (passby_press) {
if (p_event.type==InputEvent::SCREEN_TOUCH && !p_event.screen_touch.pressed && finger_pressed==p_event.screen_touch.index) {