{"action":"created","issue":{"url":"https://api.github.com/repos/MovingBlocks/DestinationSol/issues/26","labels_url":"https://api.github.com/repos/MovingBlocks/DestinationSol/issues/26/labels{/name}","comments_url":"https://api.github.com/repos/MovingBlocks/DestinationSol/issues/26/comments","events_url":"https://api.github.com/repos/MovingBlocks/DestinationSol/issues/26/events","html_url":"https://github.com/MovingBlocks/DestinationSol/pull/26","id":84444268,"number":26,"title":"Configurable keys","user":{"login":"SimonC4","id":7613950,"avatar_url":"https://avatars.githubusercontent.com/u/7613950?v=3","gravatar_id":"","url":"https://api.github.com/users/SimonC4","html_url":"https://github.com/SimonC4","followers_url":"https://api.github.com/users/SimonC4/followers","following_url":"https://api.github.com/users/SimonC4/following{/other_user}","gists_url":"https://api.github.com/users/SimonC4/gists{/gist_id}","starred_url":"https://api.github.com/users/SimonC4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SimonC4/subscriptions","organizations_url":"https://api.github.com/users/SimonC4/orgs","repos_url":"https://api.github.com/users/SimonC4/repos","events_url":"https://api.github.com/users/SimonC4/events{/privacy}","received_events_url":"https://api.github.com/users/SimonC4/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-06-03T08:55:45Z","updated_at":"2015-06-11T04:29:09Z","closed_at":"2015-06-11T04:21:30Z","pull_request":{"url":"https://api.github.com/repos/MovingBlocks/DestinationSol/pulls/26","html_url":"https://github.com/MovingBlocks/DestinationSol/pull/26","diff_url":"https://github.com/MovingBlocks/DestinationSol/pull/26.diff","patch_url":"https://github.com/MovingBlocks/DestinationSol/pull/26.patch"},"body":"I've added key mapping in to the settings.ini file which will appear after you next run the game. The key mappings can be changed by using a text editor. The definitive list of possible key definitions can be found here: https://github.com/libgdx/libgdx/blob/02ccad70e85c615962e0fa0932ab01d3da5feba1/gdx/src/com/badlogic/gdx/Input.java#L247\r\n\r\nThe goal of this work was to remove the hardcoded keys and replacing them with configurable settings. There should be no other functionality change, however:\r\n1. The settings.ini file is always saved on exit. It only used to be saved when settings were changed. This is to make the new settings show in the file immediately. The config settings aren't saved on mobile.\r\n2. Fixed a bug in the tutorial where the instruction said \"left\" when it should have been \"right\"\r\n3. There was a \"hack\" where in KB + Mouse setup the number keys of 5, 6, and 7 were used for shoot primary, shoot secondary, and ability. I replaced the hack with the normal keys. The consequence is that the number keys will no longer work and in KB + Mouse mode you can now use \"Space\" and \"L-Shift\" to shoot.\r\n4. There was also another, non-apparent, bug where the Escape key was mapped to several menu options on one menu screen. It's now only mapped to the close button. \r\n\r\nIdeally the key mappings should be a setting within the options menu, but I think that can come at a later date. "},"comment":{"url":"https://api.github.com/repos/MovingBlocks/DestinationSol/issues/comments/110996037","html_url":"https://github.com/MovingBlocks/DestinationSol/pull/26#issuecomment-110996037","issue_url":"https://api.github.com/repos/MovingBlocks/DestinationSol/issues/26","id":110996037,"user":{"login":"Cervator","id":1063833,"avatar_url":"https://avatars.githubusercontent.com/u/1063833?v=3","gravatar_id":"","url":"https://api.github.com/users/Cervator","html_url":"https://github.com/Cervator","followers_url":"https://api.github.com/users/Cervator/followers","following_url":"https://api.github.com/users/Cervator/following{/other_user}","gists_url":"https://api.github.com/users/Cervator/gists{/gist_id}","starred_url":"https://api.github.com/users/Cervator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Cervator/subscriptions","organizations_url":"https://api.github.com/users/Cervator/orgs","repos_url":"https://api.github.com/users/Cervator/repos","events_url":"https://api.github.com/users/Cervator/events{/privacy}","received_events_url":"https://api.github.com/users/Cervator/received_events","type":"User","site_admin":false},"created_at":"2015-06-11T04:29:08Z","updated_at":"2015-06-11T04:29:08Z","body":"Tested again and merged :-)\r\n\r\nThe build out of Jenkins works fine, other than the previously mentioned weirdness of sol.exe not working on my PC (but fine on my wife's).\r\n\r\nI added the new key binding defaults to the settings.ini in source control just so we have them handy. That has no impact on the build game though - it starts fresh.\r\n\r\nThanks again! With this in place next Steam release we can just tell people to go tweak their keys in settings.ini :-)"}}