mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 09:01:32 +00:00
Merge pull request #55158 from m4gr3d/add_oculus_openxr_config_3x
This commit is contained in:
commit
451bba967a
6 changed files with 70 additions and 18 deletions
|
|
@ -620,6 +620,8 @@ public class Godot extends Fragment implements SensorEventListener, IDownloaderC
|
|||
xrMode = XRMode.REGULAR;
|
||||
} else if (command_line[i].equals(XRMode.OVR.cmdLineArg)) {
|
||||
xrMode = XRMode.OVR;
|
||||
} else if (command_line[i].equals(XRMode.OPENXR.cmdLineArg)) {
|
||||
xrMode = XRMode.OPENXR;
|
||||
} else if (command_line[i].equals("--debug_opengl")) {
|
||||
use_debug_opengl = true;
|
||||
} else if (command_line[i].equals("--translucent")) {
|
||||
|
|
|
|||
|
|
@ -128,6 +128,7 @@ public class GodotView extends GLSurfaceView {
|
|||
setFocusableInTouchMode(true);
|
||||
switch (xrMode) {
|
||||
case OVR:
|
||||
case OPENXR:
|
||||
// Replace the default egl config chooser.
|
||||
eglConfigChooser = new OvrConfigChooser();
|
||||
|
||||
|
|
|
|||
|
|
@ -35,7 +35,8 @@ package org.godotengine.godot.xr;
|
|||
*/
|
||||
public enum XRMode {
|
||||
REGULAR(0, "Regular", "--xr_mode_regular", "Default Android Gamepad"), // Regular/flatscreen
|
||||
OVR(1, "Oculus Mobile VR", "--xr_mode_ovr", "");
|
||||
OVR(1, "Oculus Mobile VrApi (Deprecated)", "--xr_mode_ovr", ""),
|
||||
OPENXR(2, "OpenXR", "--xr_mode_openxr", "");
|
||||
|
||||
final int index;
|
||||
final String label;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue