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;
}
}
|