Interface EngineInputBroadcaster


public interface EngineInputBroadcaster
This interface describes an object that should receive an input listener to attach itself to in order to pass input events along to the active EngineInputListeners.

The Engine uses something called input codes to define actions taken so that the component that is supposed to listen for device actions can broadcast filtered events, or automate them.

Input codes should be defined by the layer that reads device input. A good strategy for handling heterogeneous input systems like GUIs are to have those handle system input, and then if the input wasn't handled, pass it along to the Engine.

You cannot guarantee the order in which these objects have their methods called on them.

Author:
Matthew Tropiano
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Called by Engine in order to pass along the event receiver that is used to broadcast input events to listening components in the engine.
  • Method Details

    • addInputReceiver

      void addInputReceiver(EngineInputEventReceiver receiver)
      Called by Engine in order to pass along the event receiver that is used to broadcast input events to listening components in the engine.
      Parameters:
      receiver - the receiver to use.