{"action":"created","issue":{"url":"https://api.github.com/repos/opentk/opentk/issues/344","repository_url":"https://api.github.com/repos/opentk/opentk","labels_url":"https://api.github.com/repos/opentk/opentk/issues/344/labels{/name}","comments_url":"https://api.github.com/repos/opentk/opentk/issues/344/comments","events_url":"https://api.github.com/repos/opentk/opentk/issues/344/events","html_url":"https://github.com/opentk/opentk/pull/344","id":134858808,"number":344,"title":"Increase number of joystick axis / buttons available","user":{"login":"leezer3","id":7688245,"avatar_url":"https://avatars.githubusercontent.com/u/7688245?v=3","gravatar_id":"","url":"https://api.github.com/users/leezer3","html_url":"https://github.com/leezer3","followers_url":"https://api.github.com/users/leezer3/followers","following_url":"https://api.github.com/users/leezer3/following{/other_user}","gists_url":"https://api.github.com/users/leezer3/gists{/gist_id}","starred_url":"https://api.github.com/users/leezer3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leezer3/subscriptions","organizations_url":"https://api.github.com/users/leezer3/orgs","repos_url":"https://api.github.com/users/leezer3/repos","events_url":"https://api.github.com/users/leezer3/events{/privacy}","received_events_url":"https://api.github.com/users/leezer3/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2016-02-19T12:54:23Z","updated_at":"2016-03-05T23:36:33Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/opentk/opentk/pulls/344","html_url":"https://github.com/opentk/opentk/pull/344","diff_url":"https://github.com/opentk/opentk/pull/344.diff","patch_url":"https://github.com/opentk/opentk/pull/344.patch"},"body":"This is an attempted fix for #298 \r\n\r\nOn my machine (I've tried both Windows & Ubuntu), a PS3 controller will only detect with 8 axis-\r\nLeft Thumbstick (2 axis)\r\nRight Thumbstick (2 axis)\r\nAccelerometer (2 axis)\r\nL/R Triggers (2 axis)\r\n\r\nI don't have anything else with a silly number of axis, so I can't test with that.\r\nHowever, the controller works correctly with my built version, so I'm guessing that the original reporter forgot to change the definition of the Last axis.\r\n\r\nI've also increased the number of available buttons to 128-\r\nI've had one crash reported from a user with a Saitek X55 HOTAS stick, which has approx 50 buttons.\r\nI've tested this with the vJoy virtual joystick, both on Windows and an Ubuntu VM."},"comment":{"url":"https://api.github.com/repos/opentk/opentk/issues/comments/192760902","html_url":"https://github.com/opentk/opentk/pull/344#issuecomment-192760902","issue_url":"https://api.github.com/repos/opentk/opentk/issues/344","id":192760902,"user":{"login":"cra0zy","id":6773302,"avatar_url":"https://avatars.githubusercontent.com/u/6773302?v=3","gravatar_id":"","url":"https://api.github.com/users/cra0zy","html_url":"https://github.com/cra0zy","followers_url":"https://api.github.com/users/cra0zy/followers","following_url":"https://api.github.com/users/cra0zy/following{/other_user}","gists_url":"https://api.github.com/users/cra0zy/gists{/gist_id}","starred_url":"https://api.github.com/users/cra0zy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cra0zy/subscriptions","organizations_url":"https://api.github.com/users/cra0zy/orgs","repos_url":"https://api.github.com/users/cra0zy/repos","events_url":"https://api.github.com/users/cra0zy/events{/privacy}","received_events_url":"https://api.github.com/users/cra0zy/received_events","type":"User","site_admin":false},"created_at":"2016-03-05T23:36:33Z","updated_at":"2016-03-05T23:36:33Z","body":"> I just realized - there is a way we can \"eat our cake & have it to\" - take the command lines in each method that returns a JoystickAxis enum or JoystsickButton enum & put them into another method that returns an int & make the existing methods call the new integer methods & return the result cast to the enumeration - that way the code obeys the \"D.R.Y. - principle\". This way existing code won't break, but we also allow users to start using integer based values. We could even put [Obsolete(\"use the new ....\")] tags on the old methods - which has already been done multiple places in the OpenTK code\r\n\r\nThat's something you usually do when you make a change to an API... and then later when you make a next major release you remove all Obsolete code... it's kind of a common knowledge..."}}