Problem with keyup event 2003-12-11 - By Geng Wang
Back Hi,
(Thanks a lot to everyone for helping with the questions I posted. I'll report my updates to you guys later!)
Here is another one:)
I am trying to detect every keyup/keydown event with a w3d scene, basically for moving a character in the scene using arrow keys. I use "on keyup/ on keydown" events and associate them with the w3d in the timeline. There are no problems when you just strok one key at a time. But if there are more than one key stroked at the same time, only ONE KeyUp is identified, whatever key released first. For example, if both Up and Left arrow keys are pressed and Left released first, then Up key released, you get two KeyUp called, but only reports the same keycode (123) (e.g., "123 is up"+"123 is up"; instead of "123 is up"+"126 is up"). The result is that the character stops not only at up key release, but also at any other key release.
I notice the same problem with "keyupscript/keydownscript".
Thanks for any guide again!
Geng
===== Geng Wang www.geocities.com/gwangdesign
__ ____ ____ ____ ____ ____ ______ Do you Yahoo!? New Yahoo! Photos - easier uploading and sharing. http://photos.yahoo.com/ __ ____ ____ ____ ____ ____ ____ ____ ____ ____ Dir3d-l mailing list Dir3d-l@(protected) http://nuttybar.drama.uga.edu/mailman/listinfo/dir3d-l
|
|