Class InputManager

java.lang.Object
org.wildstang.framework.io.InputManager

public class InputManager extends Object
Contains and updates all Inputs.
  • Constructor Details

    • InputManager

      public InputManager()
  • Method Details

    • init

      public void init()
      Initializes logger.
    • update

      public void update()
      Updates all managed inputs.
    • addInput

      public void addInput(Input p_input)
      Adds an Input to the manager.
      Parameters:
      p_input - Input object to add.
    • removeInput

      public void removeInput(Input p_input)
      Removes an Input to the manager.
      Parameters:
      p_input - Input object to remove.
    • getInput

      public Input getInput(String p_name)
      Returns a named Input from the manager.
      Parameters:
      p_name - Name of the Input to fetch.
      Returns:
      Input belonging to the manager.
    • getInput

      public Input getInput(Inputs p_input)
      Returns an Input with a matching name from the manager.
      Parameters:
      p_input - Input to fetch from the manager.
      Returns:
      Input belonging to the manager.
    • contains

      public boolean contains(String p_name)
      Determines if the manager has an Input with a given name.
      Parameters:
      p_name - Name of an Input to search for.
      Returns:
      True if an Input exists with p_name.
    • size

      public int size()
      Returns the total size of all managed inputs.
      Returns:
      Size of all managed inputs.
    • removeAll

      public void removeAll()
      Removes all Inputs from the manager.
    • getHashMap

      public HashMap<String,Input> getHashMap()
      Produces a HashMap of all managed Inputs.
      Returns:
      HashMap of all managed Inputs mapped to their names.