com.jme.input.action
Class KeyLookDownAction

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

public class KeyLookDownAction
extends KeyInputAction

KeyLookDownAction tilts a camera down a given angle. This angle should be represented as a radian.

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

Field Summary
 
Fields inherited from class com.jme.input.action.KeyInputAction
allowsRepeats, key, keyChar, speed
 
Constructor Summary
KeyLookDownAction(Camera camera, float speed)
          Constructor instantiates a new KeyLookDownAction object.
 
Method Summary
 void performAction(InputActionEvent evt)
          performAction adjusts the view of the camera to tilt down a given angle.
 
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

KeyLookDownAction

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

Parameters:
camera - the camera to tilt.
speed - the speed at which the camera tilts.
Method Detail

performAction

public void performAction(InputActionEvent evt)
performAction adjusts the view of the camera to tilt down a given angle. This angle is determined by the camera's speed and the time which has passed.

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