|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.nexttext.input.InputSource
net.nexttext.input.Mouse
net.nexttext.input.MouseDefault
public class MouseDefault
The MouseDefault is a Mouse InputSource for Processing which is automatically updated as the sketch is running.
| Field Summary |
|---|
| Fields inherited from class net.nexttext.input.Mouse |
|---|
CENTER, LEFT, RIGHT |
| Constructor Summary | |
|---|---|
MouseDefault(processing.core.PApplet p)
Builds a MouseDefault. |
|
| Method Summary | |
|---|---|
int |
getX()
Get the current x position of the mouse. |
int |
getY()
Get the current y position of the mouse. |
boolean |
isPressed(int button)
Gets whether the specified mouse button is pressed. |
void |
mouseEvent(java.awt.event.MouseEvent event)
Handles a MouseEvent. |
| Methods inherited from class net.nexttext.input.Mouse |
|---|
getLocation, getPosition |
| Methods inherited from class net.nexttext.input.InputSource |
|---|
getIterator |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MouseDefault(processing.core.PApplet p)
p - the parent PApplet the MouseDefault is added to| Method Detail |
|---|
public int getX()
getX in class Mousepublic int getY()
getY in class Mousepublic boolean isPressed(int button)
isPressed in class Mousebutton - is a static button definition.
public void mouseEvent(java.awt.event.MouseEvent event)
Registered to be called automatically by the PApplet.
event -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||