{"action":"created","issue":{"url":"https://api.github.com/repos/openMSX/openMSX/issues/755","labels_url":"https://api.github.com/repos/openMSX/openMSX/issues/755/labels{/name}","comments_url":"https://api.github.com/repos/openMSX/openMSX/issues/755/comments","events_url":"https://api.github.com/repos/openMSX/openMSX/issues/755/events","html_url":"https://github.com/openMSX/openMSX/issues/755","id":90577883,"number":755,"title":"[Bug] Joystick axes incorrectly mapped on Mac-OS-X [sf#361]","user":{"login":"openMSX-import","id":12987176,"avatar_url":"https://avatars.githubusercontent.com/u/12987176?v=3","gravatar_id":"","url":"https://api.github.com/users/openMSX-import","html_url":"https://github.com/openMSX-import","followers_url":"https://api.github.com/users/openMSX-import/followers","following_url":"https://api.github.com/users/openMSX-import/following{/other_user}","gists_url":"https://api.github.com/users/openMSX-import/gists{/gist_id}","starred_url":"https://api.github.com/users/openMSX-import/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openMSX-import/subscriptions","organizations_url":"https://api.github.com/users/openMSX-import/orgs","repos_url":"https://api.github.com/users/openMSX-import/repos","events_url":"https://api.github.com/users/openMSX-import/events{/privacy}","received_events_url":"https://api.github.com/users/openMSX-import/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/openMSX/openMSX/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-24T06:14:23Z","updated_at":"2015-06-24T06:21:11Z","closed_at":null,"body":"**Reported by sd-snatcher on 2009-10-30 22:53 UTC**\nI do have a playstation-like USB joystick, but openMSX is not reading its axes correctly. The buttons seems to work fine.\r\n\r\nAs almost all playstation-like USB joysticks, it has the following configuration:\r\n\r\nButton \\#1 : Minimum = 0, Default = 0, Maximum = 1\r\nButton \\#2 : Minimum = 0, Default = 0, Maximum = 1\r\nButton \\#3 : Minimum = 0, Default = 0, Maximum = 1\r\nButton \\#4 : Minimum = 0, Default = 0, Maximum = 1\r\nButton \\#5 : Minimum = 0, Default = 0, Maximum = 1\r\nButton \\#6 : Minimum = 0, Default = 0, Maximum = 1\r\nButton \\#7 : Minimum = 0, Default = 0, Maximum = 1\r\nButton \\#8 : Minimum = 0, Default = 0, Maximum = 1\r\nButton \\#9 : Minimum = 0, Default = 0, Maximum = 1\r\nButton \\#10 : Minimum = 0, Default = 0, Maximum = 1\r\nButton \\#11 : Minimum = 0, Default = 0, Maximum = 1\r\nButton \\#12 : Minimum = 0, Default = 0, Maximum = 1\r\nPage: 0xff00, Usage: 0x1 : Minimum = 0, Default = 0, Maximum = 0\r\nZ-Axis : Minimum = 1, Default = 1, Maximum = 1\r\nZ-Axis : Minimum = 0, Default = 128, Maximum = 255\r\nZ-Rotation : Minimum = 0, Default = 128, Maximum = 255\r\nX-Axis : Minimum = 0, Default = 128, Maximum = 255\r\nY-Axis : Minimum = 0, Default = 128, Maximum = 255\r\nHatswitch : Minimum = 0, Default = 15, Maximum = 15\r\n\r\nThis is mapped as follows \\(on analog mode\\):\r\n\r\nDigital stick = Hatswitch\r\nLeft Analog stick = Axes X and Y\r\nRight Analog stick = Z-Axis and Z-Rotation\r\n\r\nWhen working on digital mode, both the Digital stick and Left Analog stick are both mapped to use the axes X and Y. The right analog stick is mapped to the buttons 1-4.\r\n\r\nThe openMSX reacts to the joystick as this:\r\n\r\nDigital Mode: the game reacts as if the joystick is pointing left always.\r\nAnalog Mode: The right-stick works for up/down and the game still reacts as if the joystick is pointing left always.\r\n"},"comment":{"url":"https://api.github.com/repos/openMSX/openMSX/issues/comments/114744816","html_url":"https://github.com/openMSX/openMSX/issues/755#issuecomment-114744816","issue_url":"https://api.github.com/repos/openMSX/openMSX/issues/755","id":114744816,"user":{"login":"openMSX-import","id":12987176,"avatar_url":"https://avatars.githubusercontent.com/u/12987176?v=3","gravatar_id":"","url":"https://api.github.com/users/openMSX-import","html_url":"https://github.com/openMSX-import","followers_url":"https://api.github.com/users/openMSX-import/followers","following_url":"https://api.github.com/users/openMSX-import/following{/other_user}","gists_url":"https://api.github.com/users/openMSX-import/gists{/gist_id}","starred_url":"https://api.github.com/users/openMSX-import/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openMSX-import/subscriptions","organizations_url":"https://api.github.com/users/openMSX-import/orgs","repos_url":"https://api.github.com/users/openMSX-import/repos","events_url":"https://api.github.com/users/openMSX-import/events{/privacy}","received_events_url":"https://api.github.com/users/openMSX-import/received_events","type":"User","site_admin":false},"created_at":"2015-06-24T06:21:11Z","updated_at":"2015-06-24T06:21:11Z","body":"**Commented by manuelbi on 2009-10-31 10:54 UTC**\nMy guess would be that this is an SDL bug... openMSX uses the information it gets from SDL for joystick."}}