com.jme.input.action
Class KeyExitAction

java.lang.Object
  extended bycom.jme.input.action.KeyInputAction
      extended bycom.jme.input.action.KeyExitAction
All Implemented Interfaces:
InputAction

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,v 1.7 2004/10/14 01:23:00 mojomonkey Exp $
Author:
Mark Powell

Field Summary
 
Fields inherited from class com.jme.input.action.KeyInputAction
allowsRepeats, key, keyChar, 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.KeyInputAction
allowsRepeats, getKey, getKeyChar, getSpeed, setAllowsRepeats, setKey, setKeyChar, 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:
InputAction.performAction(InputActionEvent)