Package com.simsilica.lemur.event
Class DefaultCursorListener
java.lang.Object
com.simsilica.lemur.event.DefaultCursorListener
- All Implemented Interfaces:
CursorListener
- Direct Known Subclasses:
DragHandler
A default implementation cursor listener that provides default
implementations for all CursorListener methods. In addition,
the cursorButtonEvent() provides basic default click behavior
calling an overridable click() method.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidclick(CursorButtonEvent event, Spatial target, Spatial capture) voidcursorButtonEvent(CursorButtonEvent event, Spatial target, Spatial capture) voidcursorEntered(CursorMotionEvent event, Spatial target, Spatial capture) voidcursorExited(CursorMotionEvent event, Spatial target, Spatial capture) voidcursorMoved(CursorMotionEvent event, Spatial target, Spatial capture)
-
Constructor Details
-
DefaultCursorListener
public DefaultCursorListener()
-
-
Method Details
-
click
-
cursorButtonEvent
- Specified by:
cursorButtonEventin interfaceCursorListener
-
cursorEntered
- Specified by:
cursorEnteredin interfaceCursorListener
-
cursorExited
- Specified by:
cursorExitedin interfaceCursorListener
-
cursorMoved
- Specified by:
cursorMovedin interfaceCursorListener
-