Android Open Source - AndroidJoystick On Joystick Moved Listener






From Project

Back to project page AndroidJoystick.

License

The source code is released under:

Copyright (c) 2011, olberg(at)gmail(dot)com, http://mobile-anarchy-widgets.googlecode.com Copyright (c) 2011, Joakim Andersson All rights reserved. Redistribution and use in sour...

If you think the Android project AndroidJoystick 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

/*
 * Copyright (c) 2011, olberg(at)gmail(dot)com, 
 *                     http://mobile-anarchy-widgets.googlecode.com
 * Copyright (c) 2011, Joakim Andersson//from   w ww  .ja  v  a 2s  . co m
 * All rights reserved.
 * 
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 * # Redistributions of source code must retain the above copyright notice,
 *   this list of conditions and the following disclaimer.
 * # Redistributions in binary form must reproduce the above copyright notice,
 *   this list of conditions and the following disclaimer in the documentation
 *   and/or other materials provided with the distribution.
 * 
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 * POSSIBILITY OF SUCH DAMAGE.
 */

/*
 * As can be seen in the copyright above, this interface is a modified version
 * of the JoystickMovedListener interface available from the
 * mobile-anarchy-widgets project on Google Code.
 * 
 *     /Joakim Andersson, 2011-11-11
 */

package nu.firetech.android.joystick;

/**
 * The {@link OnJoystickMovedListener} interface provides a method for
 * listening to the movement of {@link JoystickView}s or
 * {@link SplitJoystickView}s.
 */
public interface OnJoystickMovedListener {
  public void onMoved(int x, int y);
}




Java Source Code List

nu.firetech.android.joystick.JoystickView.java
nu.firetech.android.joystick.OnJoystickMovedListener.java
nu.firetech.android.joystick.SplitJoystickView.java