{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/MixedRealityToolkit-Unity/issues/1490","repository_url":"https://api.github.com/repos/Microsoft/MixedRealityToolkit-Unity","labels_url":"https://api.github.com/repos/Microsoft/MixedRealityToolkit-Unity/issues/1490/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/MixedRealityToolkit-Unity/issues/1490/comments","events_url":"https://api.github.com/repos/Microsoft/MixedRealityToolkit-Unity/issues/1490/events","html_url":"https://github.com/Microsoft/MixedRealityToolkit-Unity/issues/1490","id":280417890,"number":1490,"title":"Trouble with xbox one Controller","user":{"login":"humpalum","id":11175099,"avatar_url":"https://avatars1.githubusercontent.com/u/11175099?v=4","gravatar_id":"","url":"https://api.github.com/users/humpalum","html_url":"https://github.com/humpalum","followers_url":"https://api.github.com/users/humpalum/followers","following_url":"https://api.github.com/users/humpalum/following{/other_user}","gists_url":"https://api.github.com/users/humpalum/gists{/gist_id}","starred_url":"https://api.github.com/users/humpalum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/humpalum/subscriptions","organizations_url":"https://api.github.com/users/humpalum/orgs","repos_url":"https://api.github.com/users/humpalum/repos","events_url":"https://api.github.com/users/humpalum/events{/privacy}","received_events_url":"https://api.github.com/users/humpalum/received_events","type":"User","site_admin":false},"labels":[{"id":724906427,"url":"https://api.github.com/repos/Microsoft/MixedRealityToolkit-Unity/labels/OS%20Bug","name":"OS Bug","color":"eac635","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-12-08T08:55:54Z","updated_at":"2018-05-02T13:15:32Z","closed_at":null,"author_association":"NONE","body":"## Overview\r\nIn our project we use the Xbox controller input. However, some of the buttons don't function correctly. For example, the right trigger always returns -1 instead of the correct value.\r\nIt actually works in the Unity Editor, but after deploying it on the Hololens, stuff gets weird.\r\n\r\n## Expected Behavior\r\nRight Trigger should return Value between 0 and 1\r\n\r\n## Actual Behavior\r\nReturns -1. \r\n\r\nAdditionally, the actual action we want to perform, is somehow mapped on the left-Dpad Button.\r\n\r\n \r\n## Steps to reproduce\r\n\r\nOur xbox gameobject with all the handlers:\r\n\r\n![grafik](https://user-images.githubusercontent.com/11175099/33757747-c4cce8ec-dbfb-11e7-846e-1468077d0ca7.png)\r\n\r\nPart of the custom Handler Script.\r\n```\r\n    public override void OnXboxAxisUpdate(XboxControllerEventData eventData)\r\n    {\r\n        GazeInput GI = GazeInput.Instance;\r\n\r\n        // Grab with A Button\r\n        if (eventData.XboxA_Down)\r\n        {\r\n            GI.toggleGrab();\r\n        }\r\n\r\n        // Move Object further away or closer\r\n        if (eventData.XboxRightTriggerAxis != 0.0)\r\n        {\r\n            GI.pushbackObj(eventData.XboxRightTriggerAxis);\r\n        }\r\n        if (eventData.XboxLeftTriggerAxis != 0.0)\r\n        {\r\n\r\n            GI.pullbackObj(eventData.XboxLeftTriggerAxis);\r\n        }\r\n\r\n\r\n        //ROTATE STUFF\r\n        if (eventData.XboxLeftStickVerticalAxis != 0)\r\n        {\r\n            GI.rotateX(eventData.XboxLeftStickVerticalAxis);\r\n        }\r\n        else\r\n        {\r\n            GI.rotateX(0f);\r\n        }\r\n        if (eventData.XboxLeftStickHorizontalAxis != 0)\r\n        {\r\n            GI.rotateY(eventData.XboxLeftStickHorizontalAxis * -1);\r\n        }\r\n        else\r\n        {\r\n            GI.rotateY(0f);\r\n        }\r\n\r\n        if (eventData.XboxLeftBumper_Pressed)\r\n        {\r\n            GI.rotateZ(1f);\r\n        }\r\n\r\n        if (eventData.XboxRightBumper_Pressed)\r\n        {\r\n            GI.rotateZ(-1f);\r\n        }\r\n        if (eventData.XboxLeftBumper_Pressed == false && eventData.XboxRightBumper_Pressed == false)\r\n        {\r\n            GI.rotateZ(0f);\r\n        }\r\n\r\n        // Grab with A Button\r\n        if (eventData.XboxX_Down)\r\n        {\r\n            GI.repositionCanvas(uiCanvas);\r\n        }\r\n\r\n        if (eventData.XboxView_Down)\r\n        {\r\n            Debug.Log(\"Sel\");\r\n            GI.repositionDebugWindow(debugWindow);\r\n        }\r\n\r\n    }\r\n```\r\n\r\n## Unity Editor Version\r\nunity 2017.2.0f3\r\n\r\n## Mixed Reality Toolkit Release Version\r\nUnity 2017.2.0p1 MRTP4\r\n"},"comment":{"url":"https://api.github.com/repos/Microsoft/MixedRealityToolkit-Unity/issues/comments/385973710","html_url":"https://github.com/Microsoft/MixedRealityToolkit-Unity/issues/1490#issuecomment-385973710","issue_url":"https://api.github.com/repos/Microsoft/MixedRealityToolkit-Unity/issues/1490","id":385973710,"user":{"login":"StephenHodgson","id":13334553,"avatar_url":"https://avatars2.githubusercontent.com/u/13334553?v=4","gravatar_id":"","url":"https://api.github.com/users/StephenHodgson","html_url":"https://github.com/StephenHodgson","followers_url":"https://api.github.com/users/StephenHodgson/followers","following_url":"https://api.github.com/users/StephenHodgson/following{/other_user}","gists_url":"https://api.github.com/users/StephenHodgson/gists{/gist_id}","starred_url":"https://api.github.com/users/StephenHodgson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StephenHodgson/subscriptions","organizations_url":"https://api.github.com/users/StephenHodgson/orgs","repos_url":"https://api.github.com/users/StephenHodgson/repos","events_url":"https://api.github.com/users/StephenHodgson/events{/privacy}","received_events_url":"https://api.github.com/users/StephenHodgson/received_events","type":"User","site_admin":false},"created_at":"2018-05-02T13:15:32Z","updated_at":"2018-05-02T13:15:32Z","author_association":"COLLABORATOR","body":"Can't do anything until unity backports the fixes to the controller.\r\n\r\nhttps://fogbugz.unity3d.com/default.asp?1008255_u69q2vd4agsn6i21"}}
{"actor":{"display_login":"StephenHodgson"}}