Open shiena opened 5 years ago
mBaseDisplayInfo=DisplayInfo{"内蔵スクリーン", uniqueId "local:0", app 1440 x 2560, real 1440 x 2560, largest app 1440 x 2560, smallest app 1440 x 2560, mode 1, defaultMode 1, modes [{id=1, width=1440, height=2560, fps=75.0}], colorMode 0, supportedColorModes [0], hdrCapabilities android.view.Display$HdrCapabilities@1d6308, rotation 0, density 400 (537.882 x 537.388) dpi, layerStack 0, appVsyncOff 1000000, presDeadline 13333333, type BUILT_IN, state OFF, FLAG_SECURE, FLAG_SUPPORTS_PROTECTED_BUFFERS, removeMode 0} mBaseDisplayInfo=DisplayInfo{"VR 2D Display", uniqueId "virtual:android:277f1a09-b88d-4d1e-8716-796f114d080b", app 900 x 1125, real 900 x 1125, largest app 900 x 1125, smallest app 900 x 1125, mode 3, defaultMode 3, modes [{id=3, width=900, height=1125, fps=60.0}], colorMode 0, supportedColorModes [0], hdrCapabilities null, rotation 0, density 400 (400.0 x 400.0) dpi, layerStack 1, appVsyncOff 0, presDeadline 16666666, type VIRTUAL, state ON, owner android (uid 1000), FLAG_SECURE, removeMode 0}
Packages: versionName=1.20.234682102.release_aio
using System; using UnityEngine; [RequireComponent(typeof(GvrTrackedController))] public class StatePtrTest : MonoBehaviour { private GvrTrackedController _controller; void Start() { _controller = GetComponent<GvrTrackedController>(); } void Update() { Debug.LogFormat("[{0}]{1}", name, _controller.ControllerInputDevice.StatePtr != IntPtr.Zero); } }
GvrControllerInputDevice.StatePtr should return gvr_controller_state* as described in the comment.
HARDWARE/SOFTWARE VERSIONS
STEPS TO REPRODUCE THE ISSUE
ADDITIONAL COMMENTS
GvrControllerInputDevice.StatePtr should return gvr_controller_state* as described in the comment.