|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.ctdp.rfdynhud.input.InputAction
public class InputAction
This is a simple abstraction of an input action.
Field Summary | |
---|---|
static int |
MODIFIER_MASK_CTRL
|
static int |
MODIFIER_MASK_LALT
|
static int |
MODIFIER_MASK_LMETA
|
static int |
MODIFIER_MASK_RALT
|
static int |
MODIFIER_MASK_RMETA
|
static int |
MODIFIER_MASK_SHIFT
|
Constructor Summary | |
---|---|
InputAction(java.lang.String name)
Creates a new InputAction. |
|
InputAction(java.lang.String name,
java.lang.Boolean acceptedState)
Creates a new InputAction. |
Method Summary | |
---|---|
boolean |
acceptsState(boolean state)
|
int |
compareTo(InputAction o)
|
boolean |
equals(java.lang.Object o)
|
java.lang.Boolean |
getAcceptedState()
|
InputActionConsumer |
getConsumer()
|
java.lang.String |
getDoc()
|
int |
getID()
|
java.lang.String |
getName()
|
int |
hashCode()
|
boolean |
isWidgetAction()
|
java.lang.String |
toString()
|
java.lang.String |
toString2()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int MODIFIER_MASK_SHIFT
public static final int MODIFIER_MASK_CTRL
public static final int MODIFIER_MASK_LALT
public static final int MODIFIER_MASK_RALT
public static final int MODIFIER_MASK_LMETA
public static final int MODIFIER_MASK_RMETA
Constructor Detail |
---|
public InputAction(java.lang.String name, java.lang.Boolean acceptedState)
name
- the action's name as displayed in the editoracceptedState
- null
to accept any state, true
or false
to accept only this state.
Widget.onBoundInputStateChanged(InputAction, boolean, int, long, net.ctdp.rfdynhud.gamedata.LiveGameData, boolean)
will only be fired for the accepted states.public InputAction(java.lang.String name)
Widget.onBoundInputStateChanged(InputAction, boolean, int, long, net.ctdp.rfdynhud.gamedata.LiveGameData, boolean)
event will only be fired when the key/button is pressed while released state changes will be ignored.
name
- the action's name as displayed in the editorMethod Detail |
---|
public final int getID()
public final java.lang.String getName()
public final java.lang.Boolean getAcceptedState()
public final boolean acceptsState(boolean state)
public final boolean isWidgetAction()
public final InputActionConsumer getConsumer()
public final java.lang.String getDoc()
public int compareTo(InputAction o)
compareTo
in interface java.lang.Comparable<InputAction>
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toString2()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |