|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jme.input.action.InputAction
com.jme.input.action.KeyInputAction
com.jme.input.action.KeyExitAction
public class KeyExitAction
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.
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 |
---|
public KeyExitAction(AbstractGame app)
KeyExitAction
object.
app
- the reference to the application.Method Detail |
---|
public void performAction(InputActionEvent evt)
performAction
calls the finish
method of
the provided application.
evt
- the event that triggered the perform action method.InputActionInterface.performAction(InputActionEvent)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |