com.jme.input.action
Class KeyToggleRenderState

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

public class KeyToggleRenderState
extends KeyInputAction

Toggles a renderstate enabled/disabled. Created on Jul 21, 2004

Author:
Joel Schuster

Field Summary
 
Fields inherited from class com.jme.input.action.InputAction
speed
 
Constructor Summary
KeyToggleRenderState(RenderState state, Node owner)
          instantiates a new KeyToggleRenderState object.
 
Method Summary
 void performAction(InputActionEvent evt)
          switch the state from on to off or off to on.
 
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

KeyToggleRenderState

public KeyToggleRenderState(RenderState state,
                            Node owner)
instantiates a new KeyToggleRenderState object. The state to switch and the owner of the state are supplied during creation.

Parameters:
state - the state to switch.
owner - the owner of the state.
Method Detail

performAction

public void performAction(InputActionEvent evt)
switch the state from on to off or off to on.

Parameters:
evt - the event that executed the action.