org.jagatoo.input.actions.impl
Class MouseSmoothingSwitchAction

java.lang.Object
  extended by org.jagatoo.input.actions.AbstractInputAction
      extended by org.jagatoo.input.actions.AbstractInvokableInputAction
          extended by org.jagatoo.input.actions.AbstractLabeledInvokableInputAction
              extended by org.jagatoo.input.actions.impl.MouseSmoothingSwitchAction
All Implemented Interfaces:
InputAction, InvokableInputAction, LabeledInputAction, LabeledInvokableInputAction

public class MouseSmoothingSwitchAction
extends AbstractLabeledInvokableInputAction

This LabeledInvokableInputAction handles disabling and enabling of an InputHandler's mouse smoothing flag.


Field Summary
static java.lang.String SUCCESS
           
 
Constructor Summary
MouseSmoothingSwitchAction(int ordinal, InputHandler<?> ih)
           
MouseSmoothingSwitchAction(int ordinal, java.lang.String text, InputHandler<?> ih)
           
 
Method Summary
 java.lang.String invokeAction(InputDevice device, DeviceComponent comp, int delta, int state, long nanoTime)
          This method is invoked when the bound InputDevice changed its state.
 
Methods inherited from class org.jagatoo.input.actions.AbstractLabeledInvokableInputAction
getLocalizedText, getText
 
Methods inherited from class org.jagatoo.input.actions.AbstractInputAction
ordinal
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jagatoo.input.actions.InputAction
ordinal
 

Field Detail

SUCCESS

public static final java.lang.String SUCCESS
See Also:
Constant Field Values
Constructor Detail

MouseSmoothingSwitchAction

public MouseSmoothingSwitchAction(int ordinal,
                                  java.lang.String text,
                                  InputHandler<?> ih)

MouseSmoothingSwitchAction

public MouseSmoothingSwitchAction(int ordinal,
                                  InputHandler<?> ih)
Method Detail

invokeAction

public java.lang.String invokeAction(InputDevice device,
                                     DeviceComponent comp,
                                     int delta,
                                     int state,
                                     long nanoTime)
Description copied from interface: InvokableInputAction
This method is invoked when the bound InputDevice changed its state.

Parameters:
device - the bound device
comp - the bound device component
delta - the delta of the previous and current state
state - the current state
Returns:
a success message (implementation dependent)