Hi,

In your behavior you've got the processStimulus() method with an enumeration of criteria as parameter.
In this enumaration you've got your WakeupCriterion which is a WakeupOnAWTEvent(if you use KeyPressed!!).
On this object you can do a 'getAWTEvent' that returns you an array of AWTEvent.
You know that those Events are KeyEvents(you're still using KeyPressed!!).
Then on each events, you can do a 'getKeyCode()' to get what you want.

Have a look to the API's doc, which is there: http://java.sun.com/products/java-media/3D/index.html

Exept for AWTEvent wich are in java2 docs, described here: http://java.sun.com/docs/

Hope that helps...

David HALLE.
--------------------------
E-Mail:[EMAIL PROTECTED]
----- Original Message -----
Sent: Tuesday, July 06, 1999 5:35 PM
Subject: [JAVA3D] Decoding the wake up condition

Hi,
I am building a behaviour.The Stimulus  is KEYPRESSED.Any key.
 
Is it possible to decode the wakeup event and get the actual keycode
of the key pressed?
 
 
Any example code info appreciated.
 
 
 
Regards
Daryle.

Reply via email to