Hi !
I'm currently trying to understand how InputDevices are to be used.
Somehow I have the feeling I am missing something, or something is missing in Java3D.
Currently I instantiated a InputDevice and added it to the PhysicalEnvironment and
called
setHeadIndex(int index).
So what happens now ? Java3D starts polling the device ... ummh, very nice .... but
whatfor ? There is no WakeupCriterion to let a behavior wake up, when the sensor values
change. What is the best way to implement something like :
WakeUpOnSensorReadNotIdentity
or WakeUpOnSensorReadChange. Will be something similar be available in future versions
of
Java3D ? Can I write my own WakeUpCriterions ?
Just now I am using a behavior with WakeupOnElapsedFrames to poll and update the head-
position. But this can't be the right way to do this !?!
(This results in 100%-CPU usage again ;)
The only better way I see, is to write a InputDevice that calls Behavior.postID() to
wake
up other behaviors ..
Can somebody please enlighten me ?
Niklas
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".