|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jagatoo.input.managers.InputStatesManager
public class InputStatesManager
Manages state-changes on any kind of InputDevice.
| Field Summary | |
|---|---|
static int |
CONTROLLERS_SUSPENDED
|
static int |
KEYBOARD_SUSPENDED
|
static int |
MOUSE_AXES_SUSPENDED
|
static int |
MOUSE_BUTTONS_SUSPENDED
|
static int |
MOUSE_WHEEL_SUSPENDED
|
| Constructor Summary | |
|---|---|
InputStatesManager(InputBindingsManager<? extends InputAction> bindingsManager)
Creates a new InputStatesManager. |
|
| Method Summary | |
|---|---|
InputAction[] |
getActionsByState(InputState state)
Fills all InputActions, that currently have the requested InputState, into an array. |
int |
getActionsByState(InputState state,
InputAction[] actions)
Fills all InputActions into the array, that currently have the requested InputState. |
void |
getActionsByState(InputState state,
java.util.List<? super InputAction> actions)
Fills all InputActions into the list, that currently have the requested InputState. |
void |
getActionsByState(InputState state,
java.util.List<? super InputAction> actions,
boolean clearListBefore)
Fills all InputActions into the list, that currently have the requested InputState. |
InputState |
getInputState(InputAction action)
|
InputStatesManipulator |
getInputStatesManipulator()
|
InputStatesManipulator |
getKeyStatesManipulator()
Deprecated. renamed to getInputStatesManipulator() |
int |
getNumStates()
|
int |
getSimpleInputState(InputAction action)
|
int |
getSuspendMask()
|
boolean |
hasInputStateChanged(InputAction action)
|
void |
setSuspendMask(int suspendMask)
Suspends or resumes this InputStatesManager. |
void |
update(long nanoTime)
Updates the key-states array. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int MOUSE_AXES_SUSPENDED
public static final int MOUSE_BUTTONS_SUSPENDED
public static final int MOUSE_WHEEL_SUSPENDED
public static final int KEYBOARD_SUSPENDED
public static final int CONTROLLERS_SUSPENDED
| Constructor Detail |
|---|
public InputStatesManager(InputBindingsManager<? extends InputAction> bindingsManager)
InputStatesManager.
numActions - the number of available (bindeable) actions.| Method Detail |
|---|
public InputStatesManipulator getInputStatesManipulator()
InputStatesManipulator for this manager.@Deprecated public final InputStatesManipulator getKeyStatesManipulator()
getInputStatesManipulator()
public void setSuspendMask(int suspendMask)
suspendMask - MOUSE_AXES_SUSPENDED,
MOUSE_BUTTONS_SUSPENDED,
MOUSE_WHEEL_SUSPENDED,
KEYBOARD_SUSPENDED,
If an InputStatesManager is suspended, it will ignore any input.public final int getSuspendMask()
MOUSE_AXES_SUSPENDED,
MOUSE_BUTTONS_SUSPENDED,
MOUSE_WHEEL_SUSPENDED,
KEYBOARD_SUSPENDED,
If an InputStatesManager is suspended, it will ignore any input.public final int getNumStates()
public final InputState getInputState(InputAction action)
action -
public final int getSimpleInputState(InputAction action)
action -
public final boolean hasInputStateChanged(InputAction action)
action -
public void update(long nanoTime)
nanoTime -
public void getActionsByState(InputState state,
java.util.List<? super InputAction> actions,
boolean clearListBefore)
state - actions - clearListBefore -
public final void getActionsByState(InputState state,
java.util.List<? super InputAction> actions)
state - actions -
public int getActionsByState(InputState state,
InputAction[] actions)
state - actions -
public InputAction[] getActionsByState(InputState state)
state - actions -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||