googlevr / gvr-ios-sdk

Google VR SDK for iOS
http://developers.google.com/vr/ios/
Other
645 stars 191 forks source link

GVRUIRenderer and Slider controls #303

Open NathanaelA opened 6 years ago

NathanaelA commented 6 years ago

The GVRUIRenderer appears to send a UIControlEventTouchUpInside to any UI element that it detects is in its handleTrigger routine that is in the tap path. This works for some elements fairly well. However things like a UISlider appear to need additional events to be passed in so that it knows where on the slider the person tapped.

  1. Any chance this can be added in a future version?
  2. Any idea which event I need to be attempting to send; I've been playing with it for a day; and not much closer to solving the issue.

Relevant Code: https://github.com/googlevr/gvr-ios-sdk/blob/f0d9c1985ef67139825a1ec2f77c687a70c61f7b/Samples/GVRKit/GVRUIViewRenderer.mm#L174