|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcage.input.MouseHandler
public class MouseHandler
Handles mouse clicks and checks clickable items in the current scene to see if something was hit.
Field Summary | |
---|---|
static boolean |
editMode
Edit mode allows the movement of spites with right click. |
Constructor Summary | |
---|---|
MouseHandler()
|
Method Summary | |
---|---|
void |
handleMouseMove(int iX,
int iY)
If an item is selected (in edit mode) the location of that selected item is updated to the location of the mouse pointer. |
void |
handleMousePress(int iX,
int iY,
int iButton)
If the right button is clicked, the closest sprite is selected. |
void |
handleMouseRelease(int iX,
int iY,
int iButton)
Called when the mouse is released. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static boolean editMode
Constructor Detail |
---|
public MouseHandler()
Method Detail |
---|
public void handleMousePress(int iX, int iY, int iButton)
handleMousePress
in interface org.minueto.handlers.MinuetoMouseHandler
iX
- X position of pressiY
- Y position of the pressiButton
- The button pressedMinuetoMouse
public void handleMouseRelease(int iX, int iY, int iButton)
handleMouseRelease
in interface org.minueto.handlers.MinuetoMouseHandler
iX
- X position of release.iY
- Y position of the releaseiButton
- The button releasedMinuetoMouse
public void handleMouseMove(int iX, int iY)
handleMouseMove
in interface org.minueto.handlers.MinuetoMouseHandler
iX
- X locationiY
- Y locationMinuetoMouse
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |