{"action":"created","issue":{"url":"https://api.github.com/repos/Samsung/GearVRf/issues/1245","repository_url":"https://api.github.com/repos/Samsung/GearVRf","labels_url":"https://api.github.com/repos/Samsung/GearVRf/issues/1245/labels{/name}","comments_url":"https://api.github.com/repos/Samsung/GearVRf/issues/1245/comments","events_url":"https://api.github.com/repos/Samsung/GearVRf/issues/1245/events","html_url":"https://github.com/Samsung/GearVRf/issues/1245","id":237782039,"number":1245,"title":"Problem With onTouchEvent and button presses","user":{"login":"SteveGreatApe","id":29594096,"avatar_url":"https://avatars0.githubusercontent.com/u/29594096?v=3","gravatar_id":"","url":"https://api.github.com/users/SteveGreatApe","html_url":"https://github.com/SteveGreatApe","followers_url":"https://api.github.com/users/SteveGreatApe/followers","following_url":"https://api.github.com/users/SteveGreatApe/following{/other_user}","gists_url":"https://api.github.com/users/SteveGreatApe/gists{/gist_id}","starred_url":"https://api.github.com/users/SteveGreatApe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SteveGreatApe/subscriptions","organizations_url":"https://api.github.com/users/SteveGreatApe/orgs","repos_url":"https://api.github.com/users/SteveGreatApe/repos","events_url":"https://api.github.com/users/SteveGreatApe/events{/privacy}","received_events_url":"https://api.github.com/users/SteveGreatApe/received_events","type":"User","site_admin":false},"labels":[{"id":191655399,"url":"https://api.github.com/repos/Samsung/GearVRf/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2017-06-22T09:19:00Z","updated_at":"2017-06-29T14:24:10Z","closed_at":null,"body":"Hi, I'm trying to get some code going using the Samsung controller to navigate the scene. I want use the touchpad on the controller for player movements. I'm intercepting events in the Activity's onTouchEvent call.\r\n\r\n    @Override\r\n    public boolean onTouchEvent(MotionEvent event) {\r\n        Log.d(\"MyActivity\", \"onTouchEvent: \" + event);\r\n        ...do something...\r\n        return super.onTouchEvent(event);\r\n    }\r\n\r\nI'm getting input okay while I'm not pressing either the trigger or the touchpad button itself, but while either of those are depressed the x,y co-ordindates coming back are always x=1280.0 y=720.0. Needless to say this is making it rather awkward when I don't want the player to become stuck whenever a button's depressed.\r\n\r\nIs this the right way to receive this input, I would have expected the onEvent callback in GVRCursorController.ControllerEventListener to have delivered these through getMotionEvent(), but I'm not getting any motion events at all from the controller.\r\n\r\nAlso I can't find any way of getting the orientation of the controller, other than through attaching a GVRSceneObject to it and reading back this objects orientation, surely there must be a proper interface to retrieve the controllers orientation?"},"comment":{"url":"https://api.github.com/repos/Samsung/GearVRf/issues/comments/311982632","html_url":"https://github.com/Samsung/GearVRf/issues/1245#issuecomment-311982632","issue_url":"https://api.github.com/repos/Samsung/GearVRf/issues/1245","id":311982632,"user":{"login":"liaxim","id":11889541,"avatar_url":"https://avatars2.githubusercontent.com/u/11889541?v=3","gravatar_id":"","url":"https://api.github.com/users/liaxim","html_url":"https://github.com/liaxim","followers_url":"https://api.github.com/users/liaxim/followers","following_url":"https://api.github.com/users/liaxim/following{/other_user}","gists_url":"https://api.github.com/users/liaxim/gists{/gist_id}","starred_url":"https://api.github.com/users/liaxim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liaxim/subscriptions","organizations_url":"https://api.github.com/users/liaxim/orgs","repos_url":"https://api.github.com/users/liaxim/repos","events_url":"https://api.github.com/users/liaxim/events{/privacy}","received_events_url":"https://api.github.com/users/liaxim/received_events","type":"User","site_admin":false},"created_at":"2017-06-29T14:24:10Z","updated_at":"2017-06-29T14:24:10Z","body":"We need to expose the complete touchpad information (maximum coordinates, size in mm) from ovrInputTrackedRemoteCapabilities before closing this issue."}}
{"actor":{"display_login":"liaxim"}}