com.jme.input.action
Class KeyLookUpAction

java.lang.Object
  extended by com.jme.input.action.InputAction
      extended by com.jme.input.action.KeyInputAction
          extended by com.jme.input.action.KeyLookUpAction
All Implemented Interfaces:
InputActionInterface

public class KeyLookUpAction
extends KeyInputAction

KeyLookUpAction tilts a camera up a given angle. This angle should be represented as a radian.

Version:
$Id: KeyLookUpAction.java 4131 2009-03-19 20:15:28Z blaine.dev $
Author:
Mark Powell

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

KeyLookUpAction

public KeyLookUpAction(Camera camera,
                       float speed)
Constructor instantiates a new KeyLookUpAction 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 up 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:
InputActionInterface.performAction(InputActionEvent)