Hi,

Youngseog Lee wrote:

Hi!!This is possible problem about KeyNavigatorBehavior Class.I'm not sure it's been mentioned before.When I looked the source of KeyNavigatorBehavior Class, I found it as below ...public class KeyNavigatorBehavior extends Behavior {
    private WakeupOnAWTEvent w1 = new WakeupOnAWTEvent(KeyEvent.KEY_PRESSED);
    private WakeupOnAWTEvent w2 = new WakeupOnAWTEvent(KeyEvent.KEY_RELEASED);
    private WakeupOnElapsedFrames w3 = new WakeupOnElapsedFrames(0);... private WakeupOnElapsedFrames w3 = new WakeupOnElapsedFrames(0); I think it cause j3d application might hold whole cpu time.Isn't problem?Tell me your opinion & test it!
The only reason for waking this behavior up every frame is that you can navigate during your key is pressed. But there is no need to do it, if no key is pressed, right? therefor, there could be to wakeup-criteria. One is used if a key is currently beeing pressed the other one is used, if the last pressed key is released. does this make sense?

Andreas

Reply via email to