{"action":"created","issue":{"url":"https://api.github.com/repos/MHeironimus/ArduinoJoystickLibrary/issues/1","labels_url":"https://api.github.com/repos/MHeironimus/ArduinoJoystickLibrary/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/MHeironimus/ArduinoJoystickLibrary/issues/1/comments","events_url":"https://api.github.com/repos/MHeironimus/ArduinoJoystickLibrary/issues/1/events","html_url":"https://github.com/MHeironimus/ArduinoJoystickLibrary/issues/1","id":122685811,"number":1,"title":"HTML5 Gamepad compability","user":{"login":"Sebring","id":4135198,"avatar_url":"https://avatars.githubusercontent.com/u/4135198?v=3","gravatar_id":"","url":"https://api.github.com/users/Sebring","html_url":"https://github.com/Sebring","followers_url":"https://api.github.com/users/Sebring/followers","following_url":"https://api.github.com/users/Sebring/following{/other_user}","gists_url":"https://api.github.com/users/Sebring/gists{/gist_id}","starred_url":"https://api.github.com/users/Sebring/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sebring/subscriptions","organizations_url":"https://api.github.com/users/Sebring/orgs","repos_url":"https://api.github.com/users/Sebring/repos","events_url":"https://api.github.com/users/Sebring/events{/privacy}","received_events_url":"https://api.github.com/users/Sebring/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-12-17T08:24:45Z","updated_at":"2015-12-17T21:01:07Z","closed_at":null,"body":"Hi MHeironimus, \r\nthank you for this very easy to use and straightforward library. \r\n\r\nThis is probably more of a question than an issue, I hope you don't mind.\r\n\r\nI've successfully used you library, when testing my 1-axis joystick (a Leonardo with a b10k pot) in Win 7 everything works perfect. It register -127 to 127 and goes edge to edge.\r\n\r\nBut here's the issue, it does not work properly as a HTML5 Gamepad. According to the [HTML5 spec](https://developer.mozilla.org/en-US/docs/Web/API/Gamepad_API/Using_the_Gamepad_AP) it expect axis value range from -1 to 1. I was under the impression that this range conversion would be handled by the browser but it seems the browser receives the -127 to 127 values.\r\n[Gampad API tester](http://www.html5rocks.com/en/tutorials/doodles/gamepad/gamepad-tester/tester.html)\r\n[HTML5 Gamepad Tester](http://html5gamepad.com/)\r\n\r\nDo you, or any one else of course, have any idea how to approach this to make the joystick comply to the HTML5 specs?\r\n\r\nI have [the question on stackoverflow](http://stackoverflow.com/questions/34323062/arduino-joystick-to-web-gamepad)."},"comment":{"url":"https://api.github.com/repos/MHeironimus/ArduinoJoystickLibrary/issues/comments/165581063","html_url":"https://github.com/MHeironimus/ArduinoJoystickLibrary/issues/1#issuecomment-165581063","issue_url":"https://api.github.com/repos/MHeironimus/ArduinoJoystickLibrary/issues/1","id":165581063,"user":{"login":"MHeironimus","id":5286686,"avatar_url":"https://avatars.githubusercontent.com/u/5286686?v=3","gravatar_id":"","url":"https://api.github.com/users/MHeironimus","html_url":"https://github.com/MHeironimus","followers_url":"https://api.github.com/users/MHeironimus/followers","following_url":"https://api.github.com/users/MHeironimus/following{/other_user}","gists_url":"https://api.github.com/users/MHeironimus/gists{/gist_id}","starred_url":"https://api.github.com/users/MHeironimus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MHeironimus/subscriptions","organizations_url":"https://api.github.com/users/MHeironimus/orgs","repos_url":"https://api.github.com/users/MHeironimus/repos","events_url":"https://api.github.com/users/MHeironimus/events{/privacy}","received_events_url":"https://api.github.com/users/MHeironimus/received_events","type":"User","site_admin":false},"created_at":"2015-12-17T21:01:07Z","updated_at":"2015-12-17T21:01:07Z","body":"Thanks for bringing the issue up. I had not tested my library using any browsers, so it was interesting to investigate what was working and what was not.\r\n\r\nI would be curious to see your Arduino Sketch file and see how you are wiring up the Atari 2600 paddles to the Arduino."}}