org.jagatoo.input.actions.impl
Class MouseSmoothingSwitchAction
java.lang.Object
org.jagatoo.input.actions.AbstractInputAction
org.jagatoo.input.actions.AbstractInvokableInputAction
org.jagatoo.input.actions.AbstractLabeledInvokableInputAction
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
|
|
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SUCCESS
public static final java.lang.String SUCCESS
- See Also:
- Constant Field Values
MouseSmoothingSwitchAction
public MouseSmoothingSwitchAction(int ordinal,
java.lang.String text,
InputHandler<?> ih)
MouseSmoothingSwitchAction
public MouseSmoothingSwitchAction(int ordinal,
InputHandler<?> ih)
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 devicecomp - the bound device componentdelta - the delta of the previous and current statestate - the current state
- Returns:
- a success message (implementation dependent)