Adding touch support to a Windows Store App using html and java script

5
Adding Touch Support to a Windows Store App using HTML and JavaScript Dave Isbitski Technology Evangelist, Windows 8 twitter.com/TheDaveDev blogs.msdn/com/davedev [email protected]

description

Adding touch support to a Windows Store App using HTML and JavaScript. Based on the free GameKit here at http://Win8GameKit.Codeplex.com. Additional topics avail on my blog at http://blogs.msdn.com/davedev

Transcript of Adding touch support to a Windows Store App using html and java script

Page 1: Adding touch support to a Windows Store App using html and java script

Adding Touch Support to a Windows Store App using HTML and JavaScript

Dave IsbitskiTechnology Evangelist, Windows 8twitter.com/TheDaveDevblogs.msdn/com/[email protected]

Page 2: Adding touch support to a Windows Store App using html and java script

win8gamekit.codeplex.com

Page 3: Adding touch support to a Windows Store App using html and java script

MSPointer APIStep 1: MSPointerUpListen for MSPointerUp Event

Step 2: Compare X and Y coordinatesCompare Touch Points to PointerUp Event

Step 3 : Assign the resultIf collision occurs handle it

More Details: http://blogs.msdn.com/b/ie/archive/2011/09/20/touch-input-for-ie10-and-metro-style-apps.aspx

Page 4: Adding touch support to a Windows Store App using html and java script

Now is the time to write your game. Enjoy the first to market advantage!

twitter.com/thedavedev | [email protected]

http://bit.ly/genapp8

Page 5: Adding touch support to a Windows Store App using html and java script