|
Xj3D VRML/X3D Code API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.web3d.ogl.loaders.UserInputRuntime
An Aviatrix3D runtime component that allows user code to feed mouse and keyboard events into a loaded X3D/VRML model, buffering them for later processing.
| Constructor Summary | |
UserInputRuntime()
Create a new behavior with default settings. |
|
| Method Summary | |
void |
addKeyEvent(java.awt.event.KeyEvent evt)
Add an event to the key array |
void |
addMouseEvent(java.awt.event.MouseEvent evt)
Add an event to the mouse array |
void |
executeModelBehavior()
Execute the behaviour of the runtime component now. |
int |
getKeyEvents(java.awt.event.KeyEvent[] events)
Get the list of keyboard keycodes that were hit in the last frame. |
int |
getMouseEvents(java.awt.event.MouseEvent[] events)
Get the last mouse event that was received. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public UserInputRuntime()
| Method Detail |
public void executeModelBehavior()
public int getKeyEvents(java.awt.event.KeyEvent[] events)
getKeyEvents in interface InputEventBufferevents - The array to copy the key codes into
public int getMouseEvents(java.awt.event.MouseEvent[] events)
getMouseEvents in interface InputEventBufferevents - The array to copy the key codes into
public void addKeyEvent(java.awt.event.KeyEvent evt)
evt - The event to callpublic void addMouseEvent(java.awt.event.MouseEvent evt)
evt - The event to call
|
Xj3D VRML/X3D Code API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||