org.deken.game.input
Interface InputListener

All Known Subinterfaces:
KeyMovement
All Known Implementing Classes:
FourKeyMovement, FourKeyToTile4Movement, GameFrame, GButton, GMenu, GToggleButton, GWindow.CloseButton, ManualGameTimer, MouseScrollTileMapRenderer, TwoKeyMovement

public interface InputListener

Title: InputListener Description: This interface is used with the InputMonitor. Any class that needs to be notified by an input event, needs to Implement this interface. Copyright: Copyright (c) 2005

Version:
1.0
Author:
Gary Deken

Method Summary
 void addInputAction(InputAction inputAction)
          add an InputAction for monitoring.
 int[] getInputActionIds()
          Gets the Key IDs.
 void notifyListener(InputAction inputAction)
          This method is called when any event occurs.
 

Method Detail

getInputActionIds

int[] getInputActionIds()
Gets the Key IDs. This is mainly used for wiring the object into the current GameMap Actions.

Returns:
Array of InputActionIDs

notifyListener

void notifyListener(InputAction inputAction)
This method is called when any event occurs.

Parameters:
inputAction - InputAction

addInputAction

void addInputAction(InputAction inputAction)
add an InputAction for monitoring.

Parameters:
inputAction -