Interface PInputEventListener

All Superinterfaces:
EventListener
All Known Implementing Classes:
PBasicInputEventHandler, PDragEventHandler, PDragSequenceEventHandler, PInputManager, PPanEventHandler, PPickPath, PZoomEventHandler

public interface PInputEventListener extends EventListener
PInputEventListener defines the most basic interface for objects that want to listen to PNodes for input events. This interface is very simple so that others may extend Piccolo's input management system. If you are just using Piccolo's default input management system then you will most often use PBasicInputEventHandler to register with a node for input events.

Version:
1.0
Author:
Jesse Grosjean
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    processEvent(PInputEvent event, int type)
    Called whenever an event is emitted.
  • Method Details

    • processEvent

      void processEvent(PInputEvent event, int type)
      Called whenever an event is emitted. Used to notify listeners that an event is available for proecessing.
      Parameters:
      event - event that was emitted
      type - type of event