Package processing.event
Class Event
java.lang.Object
processing.event.Event
- Direct Known Subclasses:
KeyEvent
,MouseEvent
,TouchEvent
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
int
long
int
Get the platform-native event object.boolean
boolean
boolean
boolean
-
Field Details
-
SHIFT
public static final int SHIFT- See Also:
-
CTRL
public static final int CTRL- See Also:
-
META
public static final int META- See Also:
-
ALT
public static final int ALT- See Also:
-
KEY
public static final int KEY- See Also:
-
MOUSE
public static final int MOUSE- See Also:
-
TOUCH
public static final int TOUCH- See Also:
-
-
Constructor Details
-
Event
-
-
Method Details
-
getFlavor
public int getFlavor() -
getNative
Get the platform-native event object. This might be the java.awt event on the desktop, though if you're using OpenGL on the desktop it'll be a NEWT event that JOGL uses. Android events are something else altogether. Bottom line, use this only if you know what you're doing, and don't make assumptions about the class type. -
getMillis
public long getMillis() -
getAction
public int getAction() -
getModifiers
public int getModifiers() -
isShiftDown
public boolean isShiftDown() -
isControlDown
public boolean isControlDown() -
isMetaDown
public boolean isMetaDown() -
isAltDown
public boolean isAltDown()
-