{"author_name":"sealfin","cat":"LD #20 - It's Dangerous to go Alone! Take This!","comments":[],"epoch":1443211380,"likes":1,"metadata":{"p_key":"12840","p_author":"sealfin","p_authorkey":"28917","p_urlkey":"48091","p_title":"SDL2 joystick interrogator (third version)","p_cat":"LD #20 - It's Dangerous to go Alone! Take This!","p_event":"LD33","p_time":"1443211380","p_likes":"1","p_comments":"0","p_status":"UPD5","us_key":"28917","us_name":"sealfin","us_username":"sealfin","event_start":"1440115200","event_key":"29","event_name":"LD33"},"text":"<div id=\"attachment_502553\" style=\"width: 570px\" class=\"wp-caption aligncenter\"><img src=\"http:\/\/ludumdare.com\/compo\/wp-content\/uploads\/2015\/09\/SDL2-joystick-interrogator-animation.gif\" alt=\"Interrogating a Sony PlayStation 2 DualShock 2 controller; I&#039;ve yet to figure out why SDL2 reports that the DualShock 2 has five axes (although my PlayStation-to-USB adapter might be to blame), I&#039;ve yet to figure out a solution \u2013 which doesn&#039;t involve a \u2153 axis dead zone \u2013 to the problem of the thumbsticks on the DualShock 2 not always returning all the way to the origin when they&#039;re released, and I last touched a DualShock 2 a long, long time ago so I&#039;d forgotten that the D-pad is disabled in analogue mode :\/\" width=\"560\" height=\"392\" class=\"size-full wp-image-502553\" \/><p class=\"wp-caption-text\">Interrogating a Sony PlayStation 2 DualShock 2 controller; I&#8217;ve yet to figure out why SDL2 reports that the DualShock 2 has five axes (although my PlayStation-to-USB adapter might be to blame), I&#8217;ve yet to figure out a solution \u2013 which doesn&#8217;t involve a \u2153 axis dead zone \u2013 to the problem of the thumbsticks on the DualShock 2 not always returning all the way to the origin when they&#8217;re released, and I last touched a DualShock 2 a long, long time ago so I&#8217;d forgotten that the D-pad is disabled in analogue mode :\/<\/p><\/div>\n <p>I recently rebooted development of a project I tried to develop for the Ludum Dare 20 contest held in April 2011, the theme of which was &#8220;It&#8217;s dangerous to go alone! Take this!&#8221;<\/p>\n <p>As the project will require a controller with an analogue stick to play I&#8217;ve begun to develop a utility to interrogate the capabilities of various controllers \u2013 and as I feel that the SDL2 documentation is lacking with regards to the joystick support offered by that library I&#8217;ve posted to <a href=\"http:\/\/wp.me\/p1Fz4i-lc\">my blog<\/a> the source code to the third version of that utility, for the benefit both of myself and of others.<\/p>","time":"September 25th, 2015 3:03 pm","title":"SDL2 joystick interrogator (third version)"}