Package playn.scene

Class 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.
  • Constructor Details

    • Pointer

      public Pointer(Platform plat, Layer root, boolean bubble)
      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. See Pointer.Dispatcher for details.