In my code I am setting true/false values on key down/release and then updating movement on frame event, so depending on frames/sec updates come fast or not so fast. With even 30fps, I am not getting any delay. You might want to copy-paste your code, so folks can see it and advise you better. Also try to do yourMainContainer.stage.focus = yourMainContainer In my case I am extending UIConponent in Flex and using this.stage.focus = this; which removed some of the keyboard/mouse delay issues.
Cheers. ~Wulf On Mon, Nov 29, 2010 at 7:18 AM, jonny <[email protected]> wrote: > Hi, > > I am creating a driving game in away3d where you control the car with > the keyboard. > > The problem is that the KeyboardEvent.KEY_UP event is being triggered > too late at certain points where the poly count is higher (the poly > count is about 600 at these points which I dont think is massively too > high right?) > > For example, when you press the "Right" key on the keyboard, the car > goes right but when you let go of the key, sometimes the key_up event > triggers a few seconds later which means that the car continues to > veer right for a few seconds which is highly undesirable. > > I tried to use the Senocular Key Object instead but the same problem > happens because that is also based on the KeyboardEvent.KEY_UP event. > > Anyone have any ideas what I can do? > > Many thanks
