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...

Advertisement
Free Agile Project Management Tool from Telerik
TeamPulse Community Edition helps your team effectively capture requirements, manage project plans, assign and track work, and most importantly, be continually connected with each other.
Category: Silverlight | Other Posts: View all posts by this blogger | Report as irrelevant | View bloggers stats | Views: 868 | Hits: 24

Similar Posts

  • Script for Bulk Import of Active Directory Site Links more
  • Script for Bulk Import of Active Directory Subnets more
  • Moonlight 1.0 Released, Silverlight script updated – and a Chrome hack more
  • "Silverlight: Write and Win!" Contest more
  • Automated Attendant with the OCSDK Wrapper and WPF more
  • Upgrading your project to Silverlight Alpha 1.1 Refresh more
  • JavaScript's Slippery this Reference and Other Monsters in The Closet more
  • Whats Wrong With This Code (#16) more
  • Silverlight Adventures more
  • Live from MIX07: Silverlight and XML! more

News Categories

.NET | Agile | Ajax | Architecture | ASP.NET | BizTalk | C# | Certification | Data | DataGrid | DataSet | Debugger | DotNetNuke | Events | GridView | IIS | Indigo | JavaScript | Mobile | Mono | Patterns and Practices | Performance | Podcast | Refactor | Regex | Security | Sharepoint | Silverlight | Smart Client Applications | Software | SQL | VB.NET | Visual Studio | W3 | WCF | WinFx | WPF | WSE | XAML | XLinq | XML | XSD