{"id":465,"date":"2012-01-25T23:26:32","date_gmt":"2012-01-26T04:26:32","guid":{"rendered":"http:\/\/www.bluedinosaurs.com\/code\/blog\/wordpress\/?p=465"},"modified":"2012-10-05T14:44:24","modified_gmt":"2012-10-05T18:44:24","slug":"xcontroller-a-library-for-using-xbox-360-controllers","status":"publish","type":"post","link":"http:\/\/dinomage.com\/wp\/2012\/01\/xcontroller-a-library-for-using-xbox-360-controllers\/","title":{"rendered":"XController: A library for using XBox 360 controllers"},"content":{"rendered":"<p>I recently bought a wired XBox 360 controller to use with my Steam games on my PC. \u00a0It works very nicely, so of course, I had to use it in my own code eventually.<\/p>\n<p>Here&#8217;s the first place I&#8217;m using it. \u00a0I made a little library called XController that wraps XInput in a class. \u00a0It makes the interface to the controller a lot friendlier in C++ and does not require you to include the dreaded windows.h (or XInput.h for that matter).<\/p>\n<p>Next, I might try to update StickyInput to use a similar interface. \u00a0Then I could have support for these controllers in all of my games.<\/p>\n<p>You can find <a
href=\"http:\/\/code.google.com\/p\/xcontroller\/\">XController on Google Code<\/a>!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I recently bought a wired XBox 360 controller to use with my Steam games on my PC. \u00a0It works very nicely, so of course, I had to use it in my own code eventually. Here&#8217;s the first place I&#8217;m using it. \u00a0I made a little library called XController that wraps XInput in a class. \u00a0It [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[18,9],"tags":[],"class_list":["post-465","post","type-post","status-publish","format-standard","hentry","category-dev","category-libraries"],"_links":{"self":[{"href":"http:\/\/dinomage.com\/wp\/wp-json\/wp\/v2\/posts\/465"}],"collection":[{"href":"http:\/\/dinomage.com\/wp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/dinomage.com\/wp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/dinomage.com\/wp\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/dinomage.com\/wp\/wp-json\/wp\/v2\/comments?post=465"}],"version-history":[{"count":1,"href":"http:\/\/dinomage.com\/wp\/wp-json\/wp\/v2\/posts\/465\/revisions"}],"predecessor-version":[{"id":734,"href":"http:\/\/dinomage.com\/wp\/wp-json\/wp\/v2\/posts\/465\/revisions\/734"}],"wp:attachment":[{"href":"http:\/\/dinomage.com\/wp\/wp-json\/wp\/v2\/media?parent=465"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/dinomage.com\/wp\/wp-json\/wp\/v2\/categories?post=465"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/dinomage.com\/wp\/wp-json\/wp\/v2\/tags?post=465"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}