Package playn.scene
Class Pointer
java.lang.Object
playn.core.Pointer
playn.scene.Pointer
public class Pointer extends Pointer
Integrates the layer system with pointer interactions. This supercedes the
Pointer service. So you simply create a scene Pointer instead of a
core Pointer, and it will dispatch both global and layer-local pointer interactions.-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPointer.DispatcherHandles the dispatching of pointer events to layers.static classPointer.InteractionUsed to dispatch pointer interactions to layers.static classPointer.ListenerA listener for pointer events with layer info.Nested classes/interfaces inherited from class playn.core.Pointer
Pointer.Event -
Field Summary
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
Pointer
Creates a pointer event system which dispatches both global pointer events and per-layer pointer events.- Parameters:
bubble- if true, events are "bubbled" up the layer hierarchy, if false they are delivered only to the hit layer. SeePointer.Dispatcherfor details.
-