{"action":"created","issue":{"url":"https://api.github.com/repos/libgdx/libgdx/issues/3879","repository_url":"https://api.github.com/repos/libgdx/libgdx","labels_url":"https://api.github.com/repos/libgdx/libgdx/issues/3879/labels{/name}","comments_url":"https://api.github.com/repos/libgdx/libgdx/issues/3879/comments","events_url":"https://api.github.com/repos/libgdx/libgdx/issues/3879/events","html_url":"https://github.com/libgdx/libgdx/issues/3879","id":136265811,"number":3879,"title":"Linux and Xbox controller mappings are all -1 in controller Mapping class.","user":{"login":"AldousP","id":9387019,"avatar_url":"https://avatars.githubusercontent.com/u/9387019?v=3","gravatar_id":"","url":"https://api.github.com/users/AldousP","html_url":"https://github.com/AldousP","followers_url":"https://api.github.com/users/AldousP/followers","following_url":"https://api.github.com/users/AldousP/following{/other_user}","gists_url":"https://api.github.com/users/AldousP/gists{/gist_id}","starred_url":"https://api.github.com/users/AldousP/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AldousP/subscriptions","organizations_url":"https://api.github.com/users/AldousP/orgs","repos_url":"https://api.github.com/users/AldousP/repos","events_url":"https://api.github.com/users/AldousP/events{/privacy}","received_events_url":"https://api.github.com/users/AldousP/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-02-25T03:23:31Z","updated_at":"2016-02-25T17:35:01Z","closed_at":null,"body":"#### Issue details\r\nThe source code for the class Xbox.java only has correct mappings for the Mac environment. All other platforms have all button mappings listed as -1.\r\n\r\n#### Reproduction steps/code\r\nAttempt to poll a controller for input on Windows using the constants defined in Xbox.java.\r\n\r\n#### Version of LibGDX and/or relevant dependencies\r\n1.9.2\r\n\r\n#### Platforms\r\n\r\n- Windows\r\n- Linux\r\n\r\n#### Relevant Code\r\n```\r\n if (SharedLibraryLoader.isWindows) {\r\n\t\t\tA = -1;\r\n\t\t\tB = -1;\r\n\t\t\tX = -1;\r\n\t\t\tY = -1;\r\n\t\t\tGUIDE = -1;\r\n\t\t\tL_BUMPER = -1;\r\n\t\t\tR_BUMPER = -1;\r\n\t\t\tBACK = -1;\r\n\t\t\tSTART = -1;\r\n\t\t\tDPAD_UP = -1;\r\n\t\t\tDPAD_DOWN = -1;\r\n\t\t\tDPAD_LEFT = -1;\r\n\t\t\tDPAD_RIGHT = -1;\r\n\t\t\tL_TRIGGER = -1;\r\n\t\t\tR_TRIGGER = -1;\r\n\t\t\tL_STICK_VERTICAL_AXIS = -1;\r\n\t\t\tL_STICK_HORIZONTAL_AXIS = -1;\r\n\t\t\tR_STICK_VERTICAL_AXIS = -1;\r\n\t\t\tR_STICK_HORIZONTAL_AXIS = -1;\r\n\t\t} else if (SharedLibraryLoader.isLinux) {\r\n\t\t\tA = -1;\r\n\t\t\tB = -1;\r\n\t\t\tX = -1;\r\n\t\t\tY = -1;\r\n\t\t\tGUIDE = -1;\r\n\t\t\tL_BUMPER = -1;\r\n\t\t\tR_BUMPER = -1;\r\n\t\t\tBACK = -1;\r\n\t\t\tSTART = -1;\r\n\t\t\tDPAD_UP = -1;\r\n\t\t\tDPAD_DOWN = -1;\r\n\t\t\tDPAD_LEFT = -1;\r\n\t\t\tDPAD_RIGHT = -1;\r\n\t\t\tL_TRIGGER = -1;\r\n\t\t\tR_TRIGGER = -1;\r\n\t\t\tL_STICK_VERTICAL_AXIS = -1;\r\n\t\t\tL_STICK_HORIZONTAL_AXIS = -1;\r\n\t\t\tR_STICK_VERTICAL_AXIS = -1;\r\n\t\t\tR_STICK_HORIZONTAL_AXIS = -1;\r\n}\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/libgdx/libgdx/issues/comments/188894482","html_url":"https://github.com/libgdx/libgdx/issues/3879#issuecomment-188894482","issue_url":"https://api.github.com/repos/libgdx/libgdx/issues/3879","id":188894482,"user":{"login":"AldousP","id":9387019,"avatar_url":"https://avatars.githubusercontent.com/u/9387019?v=3","gravatar_id":"","url":"https://api.github.com/users/AldousP","html_url":"https://github.com/AldousP","followers_url":"https://api.github.com/users/AldousP/followers","following_url":"https://api.github.com/users/AldousP/following{/other_user}","gists_url":"https://api.github.com/users/AldousP/gists{/gist_id}","starred_url":"https://api.github.com/users/AldousP/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AldousP/subscriptions","organizations_url":"https://api.github.com/users/AldousP/orgs","repos_url":"https://api.github.com/users/AldousP/repos","events_url":"https://api.github.com/users/AldousP/events{/privacy}","received_events_url":"https://api.github.com/users/AldousP/received_events","type":"User","site_admin":false},"created_at":"2016-02-25T17:35:01Z","updated_at":"2016-02-25T17:35:01Z","body":"Would it make more sense for the controller mapping class to be in the controllers-lwjgl3 package?"}}