You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 8, 2019. It is now read-only.
The SDK doesn't seem to have a way to access UserPrefs.ControllerHandedness. It's only accessible from the NDK if you use GvrLayout, which has a GvrApi property. However, SDK apps use GvrView, which provides no such option.
The ndk/base/GvrLayout.getGvrApi() method should be fully usable from a pure Java application without adding NDK support to your app. The ndk.base vs sdk.base is a historical artifact of how the APIs evolved rather than a limit on which functions can be used from what type of code.
It looks like there is no easy way to get the GvrApi from GvrView. We'll add an API for this.
One short-term option is to switch from GvrView to GvrLayout like the videoplayer sample. The general code would be the same. The GvrView.StereoRenderer.onDrawEye code would be replaced with the VideoSceneRenderer.drawScene and VideoSceneRenderer.drawEye code since the NDK API is slightly lower level than the SDK API.
The SDK doesn't seem to have a way to access UserPrefs.ControllerHandedness. It's only accessible from the NDK if you use GvrLayout, which has a GvrApi property. However, SDK apps use GvrView, which provides no such option.
This prevents us from complying with UX-C2: App uses hand preference
The text was updated successfully, but these errors were encountered: