ControlMotionEvent.java :  » Game » sf-library » com » studiofortress » sf » graphics » display » Java Open Source

Java Open Source » Game » sf library 
sf library » com » studiofortress » sf » graphics » display » ControlMotionEvent.java

package com.studiofortress.sf.graphics.display;

/**
 * This is a an event that is created and sent after the mouse has moved. This
 * does not contain the x and y location, it only contains the amount that the
 * mouse has moved.
 *
 * For getting the location you can use getControls() from the World.
 * 
 * @author Joseph Lenton - JosephLenton@StudioFortress.com
 */
public class ControlMotionEvent extends ControlEvent
{
    private final int moveX;
    private final int moveY;

    ControlMotionEvent(int moveX, int moveY)
    {
        this.moveX = moveX;
        this.moveY = moveY;
    }

    public int getMoveX()
    {
        return moveX;
    }

    public int getMoveY()
    {
        return moveY;
    }
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.