-
Notifications
You must be signed in to change notification settings - Fork 6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sensor Type in SphericalSurfaceView class #5119
Comments
If |
It is not a bug, I ask if it is possible to choose the type of sensor used by the SphericalSurfaceView, like choose the TYPE_ROTATION_VECTOR when the TYPE_GAME_ROTATION_VECTOR is not available in the device. |
Why shouldn't the code just automatically fall back to |
TYPE_ROTATION_VECTOR is an exemple. On some of our devices the TYPE_GAME_ROTATION_VECTOR is not supported, we have to use another rotation vector. We would like to be able to chose any type of rotation vector to use instead of the TYPE_GAME_ROTATION_VECTOR. |
I'm not convinced there's a good use case for choosing an arbitrary type. There's probably always a correct type to be using, and it's probably |
Yes that would be perfect. The fact is in the SphericalSurfaceView the code that chose the rotation vector is: It doesn't check if device supports it or not. It only check it's sdk version. |
I assume |
yes it's null |
…lable Issue: #5119 PiperOrigin-RevId: 222978448
…lable Issue: #5119 PiperOrigin-RevId: 222978448
Hi,
Would it be possible to choose the Sensor type between TYPE_GAME_ROTATION_VECTOR and TYPE_ROTATION_VECTOR or change the way it is selected in the SphericalSurfaceView class by checking if the TYPE_GAME_ROTATION_VECTOR is present in the device.
Because my device, a Samsung SM-T700 API 23 does not possess the TYPE_GAME_ROTATION_VECTOR but your check "Util.SDK_INT >= 18 ? Sensor.TYPE_GAME_ROTATION_VECTOR : Sensor.TYPE_ROTATION_VECTOR" return the TYPE_GAME_ROTATION_VECTOR so there is only the touch mode that is enabled but with the TYPE_ROTATION_VECTOR it works. So could it be possible to set to TYPE_ROTATION_VECTOR ?
Thank you for your concern.
The text was updated successfully, but these errors were encountered: