GitHub ReleaseEvent at 2014-07-20 02:28:17
Repository: mGameController
Actor: thedixieflatline
Payload: {"action":"published","release":{"url":"https://api.github.com/repos/thedixieflatline/mGameController/releases/439725","assets_url":"https://api.github.com/repos/thedixieflatline/mGameController/releases/439725/assets","upload_url":"https://uploads.github.com/repos/thedixieflatline/mGameController/releases/439725/assets{?name}","html_url":"https://github.com/thedixieflatline/mGameController/releases/tag/0.5","id":439725,"tag_name":"0.5","target_commitish":"master","name":"mGameController 0.5","draft":false,"author":{"login":"thedixieflatline","id":7578221,"avatar_url":"https://avatars.githubusercontent.com/u/7578221?","gravatar_id":"e986f24790cf67a754b5870420cdf50b","url":"https://api.github.com/users/thedixieflatline","html_url":"https://github.com/thedixieflatline","followers_url":"https://api.github.com/users/thedixieflatline/followers","following_url":"https://api.github.com/users/thedixieflatline/following{/other_user}","gists_url":"https://api.github.com/users/thedixieflatline/gists{/gist_id}","starred_url":"https://api.github.com/users/thedixieflatline/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thedixieflatline/subscriptions","organizations_url":"https://api.github.com/users/thedixieflatline/orgs","repos_url":"https://api.github.com/users/thedixieflatline/repos","events_url":"https://api.github.com/users/thedixieflatline/events{/privacy}","received_events_url":"https://api.github.com/users/thedixieflatline/received_events","type":"User","site_admin":false},"prerelease":false,"created_at":"2014-07-20T02:23:32Z","published_at":"2014-07-20T02:28:17Z","assets":[],"tarball_url":"https://api.github.com/repos/thedixieflatline/mGameController/tarball/0.5","zipball_url":"https://api.github.com/repos/thedixieflatline/mGameController/zipball/0.5","body":"mGameController 0.5\r\n\r\nGitHub Page: https://github.com/thedixieflatline/mGameController\r\n\r\nmGameController an app for the game Assetto Corsa.\r\nProvides the ability to get control inputs from game devices in Assetto Corsa\r\n\r\nApp developed by David Trenear\r\nPlease submit bugs or requests to the Assetto Corsa forum\r\nhttp://www.assettocorsa.net/forum/index.php\r\n\r\nProvides the ability to get control inputs from game devices in Assetto Corsa\r\nThis app is more of a tutorial on how to do this.\r\nI have developed this for something I am working on in my own Assetto Corsa apps.\r\nI thought other app developers would appreciate knowing how to do this and perhaps even use the technique.\r\nI will continue to develop this into a more generic class to handle a lot of this so developers can just plug and go on more easily integrate it into their own work if they wish. If there is a lot of interest I might even look at adding in serial device support in the future\r\n\r\n\r\nYou will need to use the Pygame I have supplied in the source as it is compiled to run in Python 3.3\r\n\r\nTo activate copy mGameController folder to C:\\Program Files (x86)\\Steam\\steamapps\\common\\assettocorsa\\apps\\python\r\n\r\nThis code is setup to be a demo and also I have combined some logic together rather than split it all up to make it easier to follow\r\nAlso some of the processing in the main loop could be moved out and some values stored on start up and not updated every frame\r\nAgain this was for readability and to make it easier to follow as well as to show beginners how to handle the inputs and how to scan for and work changes to capabilities of using different devices\r\nI have commented throughout but the best place to start the tutorial from is the acUpdate function near the bottom\r\n\r\nFirst read the comments in acUpdate that explain the 2 ways to get inputs and the pros and cons and features of each method\r\n\r\nThen go and look at the 2 different class descriptions. Start with class GameController and then read class DisplayClass\r\n\r\nTake note of what happens when each class is initialized and the secondary init of DisplayClass\r\nDisplayClass also contains the 2 functions that run the program and do all of the work\r\n\r\nPygame docs online here http://www.pygame.org/docs/"}}