|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.jme.input.action.InputActionEvent
InputActionEvent defines an event that generates the
processing of a given InputAction. This event contains information about the
triggers that caused the event to take places as well as the list of names of
the other Actions that were to be processed at the same time.
| Constructor Summary | |
InputActionEvent()
instantiates a default InputActionEvent object. |
|
InputActionEvent(KeyInput keys,
MouseInput mouse,
java.util.ArrayList eventList,
float time)
instantiates a new InputActionEvent object. |
|
| Method Summary | |
boolean |
containsEvent(java.lang.String event)
containsEvent determines if a event defined by its name is
currently contained in the list. |
java.util.ArrayList |
getEventList()
returns the event list. |
KeyInput |
getKeys()
returns the list of keys. |
MouseInput |
getMouse()
|
float |
getTime()
returns the time the event occured. |
boolean |
isKeyDown(int key)
isKeyDown determines if a particular key is pressed at the
time of the event. |
void |
setEventList(java.util.ArrayList eventList)
sets the event list. |
void |
setKeys(KeyInput keys)
sets the list of keys. |
void |
setMouse(MouseInput mouse)
|
void |
setTime(float time)
sets the time the event occured. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public InputActionEvent()
public InputActionEvent(KeyInput keys,
MouseInput mouse,
java.util.ArrayList eventList,
float time)
keys - the key state.eventList - the list of called actions.time - the time of the event.| Method Detail |
public java.util.ArrayList getEventList()
public void setEventList(java.util.ArrayList eventList)
eventList - The eventList to set.public float getTime()
public void setTime(float time)
time - The time to set.public KeyInput getKeys()
public void setKeys(KeyInput keys)
keys - The keys to set.public boolean isKeyDown(int key)
isKeyDown determines if a particular key is pressed at the
time of the event. The key is defined as a constant from KeyInput. If the
key is pressed, true is returned else, false is returned.
key - the key to check (defined as a constant in KeyInput).
public boolean containsEvent(java.lang.String event)
containsEvent determines if a event defined by its name is
currently contained in the list.
event - the event to check.
public MouseInput getMouse()
public void setMouse(MouseInput mouse)
mouse - The mouse to set.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||