org.jagatoo.input.actions
Interface InvokableInputAction

All Superinterfaces:
InputAction
All Known Subinterfaces:
LabeledInvokableInputAction
All Known Implementing Classes:
AbstractInvokableInputAction, AbstractLabeledInvokableInputAction, InputActionCommand, InputHandlerSuspendAction, MouseSmoothingSwitchAction

public interface InvokableInputAction
extends InputAction

An InputAction can be bound to an arbitrary InputDevice's component. It is executed on a state-change.


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 interface org.jagatoo.input.actions.InputAction
ordinal
 

Method Detail

invokeAction

java.lang.String invokeAction(InputDevice device,
                              DeviceComponent comp,
                              int delta,
                              int state,
                              long nanoTime)
                              throws InputSystemException
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
nanoTime -
Returns:
a success message (implementation dependent)
Throws:
InputSystemException