+
+ if(input_focus || old_focus)
+ return true;
+ }
+
+ return false;
+}
+
+bool Root::touch_press_event(unsigned finger)
+{
+ if(visible)
+ {
+ Widget *old_focus = touch_focus;
+
+ int x, y;
+ get_touch(finger, x, y);
+ touch_press(x, y, finger);
+
+ if(touch_focus || old_focus)
+ return true;
+ }
+
+ return false;
+}
+
+bool Root::touch_release_event(unsigned finger)
+{
+ if(visible)
+ {
+ Widget *old_focus = touch_focus;
+
+ int x, y;
+ get_touch(finger, x, y);
+ touch_release(x, y, finger);
+
+ if(touch_focus || old_focus)
+ return true;
+ }
+
+ return false;
+}
+
+bool Root::touch_motion_event(unsigned axis, float, float)
+{
+ if(visible)
+ {
+ unsigned finger = axis/2;
+ int x, y;
+ get_touch(finger, x, y);
+ touch_motion(x, y, finger);
+
+ if(touch_focus)
+ return true;
+ }
+
+ return false;