[{"data":1,"prerenderedAt":189},["ShallowReactive",2],{"project-12468452":3},{"id":4,"name":5,"line":6,"line_source":7,"title":8,"url":9,"domain":10,"maker":11,"posted_at":12,"year":13,"points":14,"comments":15,"rank_in_year":16,"shown_in_year":17,"top":18,"tier":19,"category":20,"subcategory":21,"format":22,"keywords":23,"reception":28,"sentiment":29,"stance_mix":30,"scored_comments":34,"aspects":35,"strip":38,"post_text":29,"what":41,"said":72,"maker_in_thread":120,"shape":129,"grid":133,"attempts":151,"same_week":152,"maker_shows":181,"maker_hidden":182,"reader_version":183,"card":184},"12468452","XBox_Controller_Linux_Interface","Simple C library for an XBox Controller (Linux) for easy use in games","title","Show HN: Simple C library for an XBox Controller (Linux) for easy use in games","https:\u002F\u002Fgithub.com\u002FMauriceGit\u002FXBox_Controller_Linux_Interface","github.com","EllipticCurve",1473499678,2016,36,9,904,2264,40,"shown","languages","c library","library",[24,25,21,26,27],"xbox controller","linux","game input","joystick","quiet",null,{"positive":31,"neutral":31,"mixed":32,"critical":33},1,0,2,4,{"design":36,"docs":37},{"positive":31,"critical":33},{"positive":32,"critical":32},[39,40,32,31,32,31,32,32,32],5,3,{"problem":42,"audience":48,"pricing":29,"motivation":57,"time_to_build":29,"stack":64,"openness":70,"stage":70,"team_size":71},{"value":43,"source":44,"evidence":45},"Reading Xbox controller input on Linux for games","maker",[46],{"id":47},"post",{"value":49,"source":50,"evidence":51},"Game developers using C on Linux","inferred",[52,53],{"id":47},{"id":54,"by":55,"text":56},"12470723","danbolt","This is great! I like the straightforwardness of it. I'm sure the user could find out the index values for each button on the controller, but I'd be tempted to include an enum…",{"value":58,"source":44,"evidence":59},"Easy use in games; maker also wants a vector and quaternion library under the same prefix",[60,61],{"id":47},{"id":62,"by":11,"text":63},"12469352","Because I needed an acronym that I also could use for the vector and quaternion library. Especially for the vector library, as chance of conflict is highest there.",[65],{"value":66,"source":44,"evidence":67},"C",[68,69],{"id":47},{"id":62,"by":11,"text":63},"unknown","solo",{"praise":73,"objections":79,"requests":98,"questions":103,"alternatives":115},[74],{"value":75,"source":76,"evidence":77},"Straightforward and easy to use","commenter",[78],{"id":54,"by":55,"text":56},[80,91],{"value":81,"source":76,"evidence":82},"The mt prefix is unclear and should match the library name",[83,87],{"id":84,"by":85,"text":86},"12468915","gravypod","What is the \"mt\" prefix for?",{"id":88,"by":89,"text":90},"12469189","cyphar","> it doesn't really matter as long as it's unique. It sort of does, because the library isn't called (or has the acronym) \"mt\". Why not call it \"xbox*\" or something like that?",{"value":92,"source":76,"evidence":93},"Vector and quaternion code should be header-only inline functions",[94],{"id":95,"by":96,"text":97},"12469486","exDM69","You really don't need to prefix everything with the same prefix everywhere, even in C. Using a per-module prefix that is unlikely to clash is enough. For your vector and…",[99],{"value":100,"source":76,"evidence":101},"Add an enum for button indices",[102],{"id":54,"by":55,"text":56},[104,108],{"value":105,"source":76,"evidence":106},"What is the mt prefix for?",[107],{"id":84,"by":85,"text":86},{"value":109,"source":76,"evidence":110},"Does SDL already support Xbox controllers?",[111],{"id":112,"by":113,"text":114},"12471808","Hydraulix989","Cool, does SDL already support the Xbox controller?",[116],{"value":117,"source":76,"evidence":118},"SDL",[119],{"id":112,"by":113,"text":114},{"comments":34,"answered":40,"key":121},[122,125,126],{"id":123,"text":124},"12468951","I thought about some fancy, meaningful prefix. But in the end I decided, it doesn't really matter as long as it's unique. So mt stands for my name (Maurice Tollmien).",{"id":62,"text":63},{"id":127,"text":128},"12469498","I won't continue that mt Prefix streak. Maybe I think of something better later :) That is a good idea, I will look into that, thanks!",{"commenters":130,"max_depth":130,"maker_replies":34,"first_comment_mins":131,"lifespan_hours":132},6,188,25,[134,136,138,140,142,144,145,147,149],[54,32,39,135,55,32],"project\u002Fpositive\u002Fdesign",[84,31,40,137,85,32],"project\u002Fneutral\u002Fdocs",[123,31,32,139,11,31],"maker\u002Fneutral\u002Fnone",[88,31,31,141,89,32],"project\u002Fcritical\u002Fdesign",[62,31,32,143,11,31],"maker\u002Fneutral\u002Fdesign",[95,31,31,141,96,32],[127,31,32,146,11,31],"maker\u002Fpositive\u002Fnone",[112,33,32,148,113,32],"other\u002Fneutral\u002Fnone",[150,33,32,148,11,31],"12472773",[],[153,158,162,167,172,176],{"id":154,"name":155,"points":156,"category":157},"12466625","flask_jsondash",302,"data",{"id":159,"name":160,"points":161,"category":157},"12486631","DeuSu",229,{"id":163,"name":164,"points":165,"category":166},"12474406","Colors Used by Popular Sites",179,"creative",{"id":168,"name":169,"points":170,"category":171},"12468723","OverThrown",141,"games",{"id":173,"name":174,"points":175,"category":166},"12477296","beatboxer",134,{"id":177,"name":178,"points":179,"category":180},"12456335","Materia",127,"dev_tools",7,false,"v2",{"id":185,"name":5,"line":6,"ai":182,"cat":20,"year":13,"points":14,"comments":15,"rec":28,"s":29,"top":18,"kw":186,"maker":11,"domain":10,"tier":19,"attempts":32,"strip":187,"url":9,"mix":188,"praise":75,"objection":81,"sub":21},12468452,[24,25,21,26,27],"530101000",[31,31,32,33],1794036547553]