public static void ShowKeyboard(OverlayKeyboardSample caller) { if (activeKeyboard != null) { HideKeyboard(); } if (activeKeyboard == null) { var vr = SteamVR.instance; if (vr != null) { caller.text = caller.textEntry.text; #if VIU_STEAMVR_2_6_0_OR_NEWER uint flag = 0; if (caller.minimalMode) { flag = (uint)EKeyboardFlags.KeyboardFlag_Minimal; } vr.overlay.ShowKeyboard(0, 0, flag, "Description", 256, caller.text, 0); #else vr.overlay.ShowKeyboard(0, 0, "Description", 256, caller.text, caller.minimalMode, 0); #endif } activeKeyboard = caller; } }
public static void HideKeyboard() { if (activeKeyboard != null) { var vr = SteamVR.instance; if (vr != null) { vr.overlay.HideKeyboard(); } } activeKeyboard = null; }
public static void ShowKeyboard(OverlayKeyboardSample caller) { if (activeKeyboard != null) { HideKeyboard(); } if (activeKeyboard == null) { var vr = SteamVR.instance; if (vr != null) { caller.text = caller.textEntry.text; vr.overlay.ShowKeyboard(0, 0, "Description", 256, caller.text, caller.minimalMode, 0); } activeKeyboard = caller; } }
public static void ShowKeyboard(OverlayKeyboardSample caller) { }
private static void OnKeyboardClosed(Valve.VR.VREvent_t arg) { activeKeyboard = null; }