Skip to content

Commit 39daa05

Browse files
authored
Merge pull request #3781 from wiwei/openvrfix
Fix the broken OpenVR build.
2 parents 7f26a4a + ce92967 commit 39daa05

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

Assets/MixedRealityToolkit.Examples/Demos/EyeTracking/Demo_Visualizer/Scripts/UserInput_Playback.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,11 @@ public void LoadNewFile(string filename)
113113

114114
try
115115
{
116+
#if WINDOWS_UWP
116117
if (!UnityEngine.Windows.File.Exists(filename))
118+
#else
119+
if (!System.IO.File.Exists(filename))
120+
#endif
117121
{
118122
txt_LoadingUpdate.text += "Error: Playback log file does not exist! ->> " + filename + " <<";
119123
Log(("Error: Playback log file does not exist! ->" + filename + "<"));
@@ -271,7 +275,7 @@ private void ShowAllAndFreeze(InputPointerVisualizer visualizer, InputSourceType
271275

272276
#if UNITY_EDITOR
273277
Load();
274-
#else
278+
#elif WINDOWS_UWP
275279
txt_LoadingUpdate.text = "[Load.2] " + FileName;
276280
bool result = AsyncHelpers.RunSync<bool>(() => UWP_Load());
277281
txt_LoadingUpdate.text = "[Load.2] Done. ";

Assets/MixedRealityToolkit.Examples/Demos/HandTracking/Script/OpenKeyboard.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ public class OpenKeyboard : MonoBehaviour
1212
public static string keyboardText = "";
1313
public TextMesh debugMessage;
1414

15+
#if UNITY_WSA
1516
private void Update()
1617
{
1718
if (keyboard != null)
@@ -28,6 +29,7 @@ private void Update()
2829
}
2930
}
3031
}
32+
#endif
3133

3234
public void OpenSystemKeyboard()
3335
{

0 commit comments

Comments
 (0)