Survivalcraft API 1.8.2.3 v1.8.2.3
Survivalcraft 2.4
载入中...
搜索中...
未找到
VrManager.cs
浏览该文件的文档.
1using Engine;
3
4namespace Game {
5 public class VrManager {
6 public static bool IsVrAvailable => false;
7
8 public static bool IsVrStarted => false;
9
10 public static RenderTarget2D VrRenderTarget => null;
11
12 public static Matrix HmdMatrix => default;
13
14 public static Matrix HmdMatrixInverted => default;
15
16 public static Vector3 HmdMatrixYpr => default;
17
18 public static Matrix HmdLastMatrix => default;
19
20 public static Matrix HmdLastMatrixInverted => default;
21
22 public static Vector3 HmdLastMatrixYpr => default;
23
24 public static Vector2 HeadMove => default;
25
26 public static Vector2 WalkingVelocity => default;
27
28 public static void Initialize() { }
29
30 public static void StartVr() { }
31
32 public static void StopVr() { }
33
34 public static void WaitGetPoses() { }
35
36 public static void SubmitEyeTexture(VrEye eye, Texture2D texture) { }
37
38 public static Matrix GetEyeToHeadTransform(VrEye eye) => default;
39
40 public static Matrix GetProjectionMatrix(VrEye eye, float near, float far) => default;
41
42 public static bool IsControllerPresent(VrController controller) => false;
43
44 public static Matrix GetControllerMatrix(VrController controller) => default;
45
46 public static Vector2 GetStickPosition(VrController controller, float deadZone = 0f) => default;
47
48 public static Vector2? GetTouchpadPosition(VrController controller, float deadZone = 0f) => default(Vector2);
49
50 public static float GetTriggerPosition(VrController controller, float deadZone = 0f) => 0f;
51
52 public static bool IsButtonDown(VrController controller, VrControllerButton button) => false;
53
54 public static bool IsButtonDownOnce(VrController controller, VrControllerButton button) => false;
55
56 public static TouchInput? GetTouchInput(VrController controller) => null;
57 }
58}
static Matrix HmdMatrixInverted
static void StartVr()
static Vector2 WalkingVelocity
static float GetTriggerPosition(VrController controller, float deadZone=0f)
static Matrix GetControllerMatrix(VrController controller)
static Vector3 HmdMatrixYpr
static bool IsButtonDown(VrController controller, VrControllerButton button)
static Matrix GetEyeToHeadTransform(VrEye eye)
static void StopVr()
static ? Vector2 GetTouchpadPosition(VrController controller, float deadZone=0f)
static ? TouchInput GetTouchInput(VrController controller)
static bool IsVrStarted
static bool IsButtonDownOnce(VrController controller, VrControllerButton button)
static RenderTarget2D VrRenderTarget
static bool IsVrAvailable
static void WaitGetPoses()
static Matrix GetProjectionMatrix(VrEye eye, float near, float far)
static void SubmitEyeTexture(VrEye eye, Texture2D texture)
static Vector2 HeadMove
static Vector3 HmdLastMatrixYpr
static Matrix HmdMatrix
static Vector2 GetStickPosition(VrController controller, float deadZone=0f)
static Matrix HmdLastMatrixInverted
static bool IsControllerPresent(VrController controller)
static void Initialize()
static Matrix HmdLastMatrix