|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--shout3d.core.DeviceInput | +--shout3d.core.MouseInput
A class for describing basic mouse input.Note that secondary (right, middle) buttons are not provided for. This is because a single button is cross-platform.
Field Summary | |
int |
button
Indicates which button of the mouse was pressed. |
static int |
DOWN
This flag indicates that the mouse button was pressed. |
static int |
DRAG
This flag indicates that the mouse button was dragged. |
static int |
MOVE
This flag indicates that the mouse button was moved. |
static int |
UP
This flag indicates that the mouse button was released. |
int |
which
Indicates which type of input (DOWN, UP, MOVE, or DRAG) was received. |
int |
x
Indicates the x location of the mouse when the input was received. |
int |
y
Indicates the y location of the mouse when the input was received. |
Fields inherited from class shout3d.core.DeviceInput |
ALT_MASK,
CTRL_MASK,
META_MASK,
modifiers,
SHIFT_MASK,
timeStamp |
Constructor Summary | |
MouseInput()
Constructs a MouseInput |
|
MouseInput(int which,
int x,
int y,
int button,
int modifiers,
double timeStamp)
Constructs a MouseInput |
Methods inherited from class shout3d.core.DeviceInput |
getTypeName,
isOfType |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
public static final int DOWN
public static final int UP
public static final int MOVE
public static final int DRAG
public int which
public int x
public int y
public int button
Constructor Detail |
public MouseInput()
public MouseInput(int which, int x, int y, int button, int modifiers, double timeStamp)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |