org.jagatoo.input.actions.impl
Class InputHandlerSuspendAction
java.lang.Object
org.jagatoo.input.actions.AbstractInputAction
org.jagatoo.input.actions.AbstractInvokableInputAction
org.jagatoo.input.actions.AbstractLabeledInvokableInputAction
org.jagatoo.input.actions.impl.InputHandlerSuspendAction
- All Implemented Interfaces:
- InputAction, InvokableInputAction, LabeledInputAction, LabeledInvokableInputAction
public class InputHandlerSuspendAction
- extends AbstractLabeledInvokableInputAction
This InvokableInputAction handles disabling and enabling of an
InputHandler on input events.
|
Field Summary |
static java.lang.String |
SUCCESS
|
| 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
InputHandlerSuspendAction
public InputHandlerSuspendAction(int ordinal,
java.lang.String text,
InputHandler<?> ih,
int suspendMask)
InputHandlerSuspendAction
public InputHandlerSuspendAction(int ordinal,
InputHandler<?> ih,
int suspendMask)
InputHandlerSuspendAction
public InputHandlerSuspendAction(int ordinal,
java.lang.String text,
InputHandler<?> ih)
InputHandlerSuspendAction
public InputHandlerSuspendAction(int ordinal,
InputHandler<?> ih)
getSuspendMask
public final int getSuspendMask()
- Returns:
- the suspend-maks to apply to the InputHandler
when the action is invoked.
invokeAction
public 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.
- 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)