Back to project page Look.
The source code is released under:
====================== LOOK! LICENSING TERMS ====================== look! is licensed under the BSD 3-Clause (also known as "BSD New" or "BSD Simplified"), as follows: Copyright (c) 2010-2012, Look...
If you think the Android project Look listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
/** *----------------------------------------------------------------------------- * Copyright (c) 2012, Look! Development Team * All rights reserved./* w w w. j ava 2 s. c o m*/ * * Distributed under the terms of the BSD Simplified License. * * The full license is in the LICENSE file, distributed with this software. *----------------------------------------------------------------------------- */ package es.ucm.look.ar.listeners; import es.ucm.look.data.WorldEntity; /** * Listener for touch events * * @author ??ngel Serrano * */ public interface TouchListener { /** * Called on touch down event * * @param e * entity touched * @param x * x screen coordinate for the event * @param y * y screen coordinate for the event * @return if the event has been processed */ boolean onTouchDown(WorldEntity e, float x, float y); /** * Called on touch up event * * @param e * entity touched * @param x * x screen coordinate for the event * @param y * y screen coordinate for the event * @return if the event has been processed */ boolean onTouchUp(WorldEntity e, float x, float y); /** * Called on touch move event * * @param e * entity touched * @param x * x screen coordinate for the event * @param y * y screen coordinate for the event * @return if the event has been processed */ boolean onTouchMove(WorldEntity e, float x, float y); }