Android Open Source - webots-remote-control Camera Touch Listener V4

From Project

Back to project page webots-remote-control.


The source code is released under:

GNU Lesser General Public License

If you think the Android project webots-remote-control listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package org.black_mesa.webots_remote_control.listeners;
/*from  w w w  .  ja  va  2 s .c o  m*/
 * Interface for the listener of the CameraTouchHandler.
 * @author Guillaume Salmon
public interface CameraTouchListenerV4 {
   * Indicates that the camera must move along the vertical axis.
   * @param vertical
   *            Distance of the movement (typically between -0.5 and 0.5).
  void moveVertical(float vertical);

   * Indicates that the camera must move sideways.
   * @param right
   *            Distance of the movement along the right axis (typically between -0.5 and 0.5).
   * @param forward
   *            Distance of the movement forward or backwards (typically between -0.5 and 0.5).
   * @param time
   *            Time, in milliseconds, spent on the event. To get the final distance, distances have typically to be
   *            multiplied by this value (typically around 32).
  void moveSide(float right, float forward, long time);

   * Indicates that the camera must change its orientation.
   * @param turn
   *            Amplitude of the turn orientation change (typically between -0.5 and 0.5).
   * @param pitch
   *            Amplitude of the pitch orientation change (typically between -0.5 and 0.5).
  void turnPitch(float turn, float pitch);

Java Source Code List