com.jme.input.action
Class KeyExitAction

java.lang.Object
  extended by com.jme.input.action.InputAction
      extended by com.jme.input.action.KeyInputAction
          extended by com.jme.input.action.KeyExitAction
All Implemented Interfaces:
InputActionInterface

public class KeyExitAction
extends KeyInputAction

KeyExitAction is used to call finish on the application. This action can be assigned to an event, such as the escape key being pressed, or a exit button being chosen.

Version:
$Id: KeyExitAction.java 4131 2009-03-19 20:15:28Z blaine.dev $
Author:
Mark Powell

Field Summary
 
Fields inherited from class com.jme.input.action.InputAction
speed
 
Constructor Summary
KeyExitAction(AbstractGame app)
          Constructor instantiates a new KeyExitAction object.
 
Method Summary
 void performAction(InputActionEvent evt)
          performAction calls the finish method of the provided application.
 
Methods inherited from class com.jme.input.action.InputAction
getSpeed, setSpeed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KeyExitAction

public KeyExitAction(AbstractGame app)
Constructor instantiates a new KeyExitAction object.

Parameters:
app - the reference to the application.
Method Detail

performAction

public void performAction(InputActionEvent evt)
performAction calls the finish method of the provided application.

Parameters:
evt - the event that triggered the perform action method.
See Also:
InputActionInterface.performAction(InputActionEvent)