Some keyboard input tricks for Silverlight 1.1 (Alpha)
Posted by: JonGalloway.ToString(),
on 03 Jul 2007 |
View original | Bookmarked: 0 time(s)
Here are a few tricks I learned while doing my "hello world" maze game in Silverlight 1.1. Silverlight doesn't fire the KeyDown event for cursor (arrow) keys However, just about all keys will fire a KeyUp event. In my case, I was able to just handle the KeyUp event, but remember that holding a key down will trigger multiple KeyDown events and only one KeyUp event. Notice how a lot of the games you're seeing for Silverlight use W/A/S/D instead of arrow keys? I suspect that's the reason. The difference...