{"action":"opened","issue":{"url":"https://api.github.com/repos/opentk/opentk/issues/298","labels_url":"https://api.github.com/repos/opentk/opentk/issues/298/labels{/name}","comments_url":"https://api.github.com/repos/opentk/opentk/issues/298/comments","events_url":"https://api.github.com/repos/opentk/opentk/issues/298/events","html_url":"https://github.com/opentk/opentk/issues/298","id":110802197,"number":298,"title":"Axis error with PS3 controller","user":{"login":"StarlightNL","id":7126102,"avatar_url":"https://avatars.githubusercontent.com/u/7126102?v=3","gravatar_id":"","url":"https://api.github.com/users/StarlightNL","html_url":"https://github.com/StarlightNL","followers_url":"https://api.github.com/users/StarlightNL/followers","following_url":"https://api.github.com/users/StarlightNL/following{/other_user}","gists_url":"https://api.github.com/users/StarlightNL/gists{/gist_id}","starred_url":"https://api.github.com/users/StarlightNL/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StarlightNL/subscriptions","organizations_url":"https://api.github.com/users/StarlightNL/orgs","repos_url":"https://api.github.com/users/StarlightNL/repos","events_url":"https://api.github.com/users/StarlightNL/events{/privacy}","received_events_url":"https://api.github.com/users/StarlightNL/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-10T15:59:07Z","updated_at":"2015-10-10T15:59:07Z","closed_at":null,"body":"Whenever I try to use a PS3 controller the program gives me a \"Argument is out of range\" error on the Axis. OpenTK supports up to 10 axis but the PS3 controller got 29 axis(Bluetooth and USB got different axis bindings)\r\n```\r\nSystem.ArgumentOutOfRangeException: Argument is out of range.\r\nParameter name: axis\r\n  at OpenTK.Input.JoystickState.SetAxis (JoystickAxis axis, Int16 value) [0x00000] in <filename unknown>:0\r\n  at OpenTK.Platform.Linux.LinuxJoystick.PollJoystick (OpenTK.Input.JoystickDevice`1 js) [0x00000] in <filename unknown>:0\r\n  at OpenTK.Platform.Linux.LinuxJoystick.OpenTK.Input.IJoystickDriver2.GetState (Int32 index) [0x00000] in <filename unknown>:0\r\n  at OpenTK.Input.Joystick.GetState (Int32 index) [0x00000] in <filename unknown>:0\r\n  at OpenTK.Platform.MappedGamePadDriver.GetState (Int32 index) [0x00000] in <filename unknown>:0\r\n  at OpenTK.Input.GamePad.GetState (Int32 index) [0x00000] in <filename unknown>:0\r\n  at ControllerTest.MainClass.Main (System.String[] args) [0x00007] in /home/starlight/MonoProjects/ControllerTest/ControllerTest/Program.cs:15\r\n```\r\nCode at line 15 is \r\n```JoystickState joyStick = Joystick.GetState(0);```\r\n\r\nI tried changing the JoystickAxis file to include more axis but then I get an other error\r\n```\r\nUnhandled Exception:\r\nSystem.InvalidOperationException: Collection was modified; enumeration operation may not execute.\r\n  at System.Collections.Generic.List`1+Enumerator[OpenTK.Platform.Linux.LinuxJoystickDetails].MoveNext () [0x00000] in <filename unknown>:0 \r\n  at OpenTK.Platform.Linux.LinuxJoystick.Dispose (Boolean manual) [0x00000] in <filename unknown>:0 \r\n  at OpenTK.Platform.Linux.LinuxJoystick.Finalize () [0x00000] in <filename unknown>:0 \r\n```"}}