com.jme.input.action
Class KeyStrafeLeftAction

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

public class KeyStrafeLeftAction
extends KeyInputAction

KeyStrafeLeftAction defines an action that causes the camera to move along the positive left vector. The speed at which it moves is set and of the form units per second.

Version:
$Id: KeyStrafeLeftAction.java,v 1.10 2004/10/14 01:22:57 mojomonkey Exp $
Author:
Mark Powell

Field Summary
 
Fields inherited from class com.jme.input.action.KeyInputAction
allowsRepeats, key, keyChar, speed
 
Constructor Summary
KeyStrafeLeftAction(Camera camera, float speed)
          Constructor instantiates a new KeyStrafeLeftAction object.
 
Method Summary
 void performAction(InputActionEvent evt)
          performAction moves the camera along the left vector for a given distance of speed * time.
 
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

KeyStrafeLeftAction

public KeyStrafeLeftAction(Camera camera,
                           float speed)
Constructor instantiates a new KeyStrafeLeftAction object.

Parameters:
camera - the camera to move along the left vector.
speed - the speed at which to move the camera.
Method Detail

performAction

public void performAction(InputActionEvent evt)
performAction moves the camera along the left vector for a given distance of speed * time.

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