{"id":122,"date":"2014-04-29T09:13:10","date_gmt":"2014-04-29T14:13:10","guid":{"rendered":"http:\/\/blog.mozilla.org\/ted\/?p=122"},"modified":"2014-04-29T09:13:10","modified_gmt":"2014-04-29T14:13:10","slug":"gamepad-api-shipping-in-firefox-29","status":"publish","type":"post","link":"https:\/\/blog.mozilla.org\/ted\/2014\/04\/29\/gamepad-api-shipping-in-firefox-29\/","title":{"rendered":"Gamepad API Shipping in Firefox 29"},"content":{"rendered":"<p>Firefox 29 <a href=\"https:\/\/blog.mozilla.org\/blog\/2014\/04\/29\/mozilla-introduces-the-most-customizable-firefox-ever-with-an-elegant-new-design\/\">ships today<\/a>, and with it ships an implementation of the <a href=\"https:\/\/dvcs.w3.org\/hg\/gamepad\/raw-file\/default\/gamepad.html\">Gamepad API<\/a>. This is the culmination of <a href=\"https:\/\/twitter.com\/TedMielczarek\/statuses\/96376992873717760\">a few years&#8217; worth of work<\/a> for me so it&#8217;s very exciting to see it ship!<\/p>\n<p>If you missed it, I wrote an article on the Gamepad API <a href=\"https:\/\/hacks.mozilla.org\/2013\/12\/the-gamepad-api\/\">over at hacks.mozilla.org<\/a>. It has information on how to use it as a developer as well as some code samples. Go check it out if you&#8217;re interested in using this API!<\/p>\n<p>If you&#8217;re not a developer, but you have a gamepad laying around, I have a couple of games you can play:<\/p>\n<ul>\n<li><a href=\"http:\/\/luser.github.io\/combat\">Combat<\/a> is an homage to Atari 2600 Combat that I wrote. It gets pretty fun if you have multiple gamepads laying around and you can play against your friends. (There&#8217;s also keyboard controls if you don&#8217;t have a gamepad, and a computer-controlled tank to play against if you don&#8217;t have friends.)<\/li>\n<li><a href=\"http:\/\/boxes-wot-shoot.appspot.com\/\">Boxes Wot Shoot<\/a> is a really slick game written by <a href=\"http:\/\/h4ck3r.net\/\">Scott Graham<\/a>, the co-editor of the Gamepad API spec. It requires a gamepad with dual analog sticks to play, but it&#8217;s super fun.<\/li>\n<\/ul>\n<p>These games work great in the release versions of both Firefox and Chrome, which is pretty awesome to see. Even more awesome is that Microsoft seems to be working on an implementation, listing the Gamepad API as &#8220;in progress&#8221; <a href=\"http:\/\/status.modern.ie\/\">on their IE progress tracker<\/a>. Perhaps you&#8217;ll be able to play these web games on your Xbox One in the future. \ud83d\ude42<\/p>\n<p>A quick note on gamepad support: it varies from platform to platform. Most USB gamepads will work on any platform. The notable counter-examples are the DualShock 3 (the PlayStation 3 controller) and the Xbox One controller. You can get third-party drivers to make them work, but it&#8217;s a little shaky. Your best bet is likely to be the Xbox 360 controller (unless you&#8217;re on a Mac), the DualShock 4 (PlayStation 4 controller), or a cheap off-brand USB controller (they can be had for $15 in many places).<\/p>\n<p>Happy gaming!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Firefox 29 ships today, and with it ships an implementation of the Gamepad API. This is the culmination of a few years&#8217; worth of work for me so it&#8217;s very exciting to see it ship! If you missed it, I wrote an article on the Gamepad API over at hacks.mozilla.org. It has information on how [&hellip;]<\/p>\n","protected":false},"author":65,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/blog.mozilla.org\/ted\/wp-json\/wp\/v2\/posts\/122"}],"collection":[{"href":"https:\/\/blog.mozilla.org\/ted\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.mozilla.org\/ted\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.mozilla.org\/ted\/wp-json\/wp\/v2\/users\/65"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.mozilla.org\/ted\/wp-json\/wp\/v2\/comments?post=122"}],"version-history":[{"count":0,"href":"https:\/\/blog.mozilla.org\/ted\/wp-json\/wp\/v2\/posts\/122\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.mozilla.org\/ted\/wp-json\/wp\/v2\/media?parent=122"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.mozilla.org\/ted\/wp-json\/wp\/v2\/categories?post=122"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.mozilla.org\/ted\/wp-json\/wp\/v2\/tags?post=122"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}