com.jme.input.action
Interface InputAction

All Known Subinterfaces:
MouseInputAction
All Known Implementing Classes:
KeyInputAction, MouseLook, MousePick, NodeMouseLook

public interface InputAction

InputAction defines an interface that sets the criteria for input actions, the speed of the action is definable and a single method (performAction) is supplied to execute the action itself.

Version:
$Id: InputAction.java,v 1.7 2004/10/14 01:22:58 mojomonkey Exp $
Author:
Mark Powell

Method Summary
 java.lang.String getKey()
           
 float getSpeed()
          getSpeed returns the speed modifier of the action.
 void performAction(InputActionEvent evt)
          performAction executes the action.
 void setKey(java.lang.String key)
           
 void setSpeed(float speed)
          setSpeed sets the speed modifier of this action.
 

Method Detail

performAction

public void performAction(InputActionEvent evt)
performAction executes the action. The InputActionEvent is supplied to define what keys are pressed, what other actions were called and the time of the event.

Parameters:
evt - the event that triggered the perform action method.

setSpeed

public void setSpeed(float speed)
setSpeed sets the speed modifier of this action.

Parameters:
speed - the speed modifier of the action.

getSpeed

public float getSpeed()
getSpeed returns the speed modifier of the action.

Returns:
the speed modifier of the action.

setKey

public void setKey(java.lang.String key)

getKey

public java.lang.String getKey()