I am trying to use the key down event in Silverlight for a game on which I am working. The problem I am experiencing is that it controls keying like silver windows. For example, if you hold down the left arrow key then the key down event is triggered once again, before triggering repeatedly Pauses for late.
Obviously this will not happen in a game because one player expects that in order to repeat the action without a break in the event, hold down a key.
So how can I get the key down to events without a brief break between the first key down incident and the following repeated events?
I believe it repeats KeyDown and not key up, so that you The last position must be tracked to determine whether the keys / themselves have been pressed in advance, to determine whether the key up events are themselves.
Keyboard support for games in Silverlight is not very good (for example, many simultaneous keys are not allowed) You really want the ability to ask that some keys (like the old scan-keycode system) ), But this is not a browser-friendly thing
Comments
Post a Comment