private void Start() { RawKeyInput.Start(true); timelineSection.color = appColor; timelineSection.appName = appName; timelineSection.appType = appType; }
public static string Show(string title, string message, string iconPath) { bool shouldRestartKeyInput = RawKeyInput.IsRunning; RawKeyInput.Stop(); var input = new TextInput(title, message, iconPath); input.textInput.Focus(); string result = ""; if (input.ShowDialog() == DialogResult.OK) { result = input.textInput.Text; } input.Dispose(); if (shouldRestartKeyInput) { RawKeyInput.Start(true); } return(result); }
void Start() { #if UNITY_STANDALONE_WIN RawKeyInput.Start(true); hookEnabled = true; RawKeyInput.OnKeyUp += HandleKeyUp; RawKeyInput.OnKeyDown += HandleKeyDown; #endif }
private void Init() { _mainCamera = Helper.GetMainCamera(); _hoverWindow = GameObject.Find("HoverWindow"); _clickMeHoverWindow = GameObject.Find("ClickMeHoverWindow"); _hasInit = true; _abjectAudioInputs = GameObject.Find(Constants.AbjectAudioInputs).GetComponent <AbjectAudioInputs>(); RawKeyInput.Start(workInBackround: true); RawKeyInput.OnKeyDown += HandleKeyDown; }
public void ToggleRawKey(bool t) { if (t) { RawKeyInput.Start(true); } else { RawKeyInput.Stop(); } }
void Start() { //Main(); var watch = Stopwatch.StartNew(); EnumWindows(new EnumWindowsDelegate(EnumWindowCallBack), IntPtr.Zero); watch.Stop(); UnityEngine.Debug.Log($"process time {watch.ElapsedMilliseconds} msec"); //ModuleName(); user = userObj.GetComponent <User>().user; RawKeyInput.Start(true); RawKeyInput.OnKeyDown += OnKeyDown; }
public void Awake() { Application.runInBackground = true; FrameworkEx.Initialize(); RawKeyInput.Start(true); RawKeyInput.InterceptMessages = !Config.SaveInput; RawKeyInput.OnKeyUp += OnExitKey; SetupDesktop(); SetupItems(); Minimize(); }
private void Awake() { if (Instance == null) { Instance = this; } else if (Instance != this) { Destroy(this); } RawKeyInput.Start(captureKeyInBackground); RawKeyInput.OnKeyDown += HandleKeyDown; RawKeyInput.OnKeyUp += HandleKeyUp; keybindKeys = new List <RawKey>(); inputKeyStrokes = new List <RawKey>(); if (PlayerPrefs.HasKey(keybindSaveKey)) { keybind = PlayerPrefs.GetString(keybindSaveKey); } }
// Start is called before the first frame update void Start() { RawKeyInput.Start(true); RawKeyInput.OnKeyDown += LogKeyDown; serifManager = FindObjectOfType <SerifManager>(); }
private void OnEnable() { RawKeyInput.Start(WorkInBackground); RawKeyInput.OnKeyUp += LogKeyUp; RawKeyInput.OnKeyDown += LogKeyDown; }
// Use this for initialization void Start() { m_PVACtrl = new PVACtrl(); m_PVACtrl.init(); m_Port = new SerialPort(); //if( Display.displays.Length > 1 ) // Display.displays[1].Activate(); /* * // Display.displays[0] は主要デフォルトディスプレイで、常に ON。 * // 追加ディスプレイが可能かを確認し、それぞれをアクティベートします。 * if( Display.displays.Length > 1 ) * Display.displays[1].Activate(); * Display.displays[0].Activate(); * //if( Display.displays.Length > 2 ) * // Display.displays[2].Activate(); */ m_objMainCanvas = GameObject.FindWithTag("MainCanvas"); //m_objInfo1 = m_objMainCanvas.transform.Find("Info1").gameObject; m_objInfo2 = m_objMainCanvas.transform.Find("Info2").gameObject; m_objInfo3 = m_objMainCanvas.transform.Find("Info3").gameObject; GameObject objBatter = GameObject.FindWithTag("Batter"); m_objBatter = objBatter.GetComponent <BatterAnim>(); GameObject objPitcher = GameObject.FindWithTag("Pitcher"); m_objPitcher = objPitcher.GetComponent <PitcherAnim>(); m_objGage = Instantiate(prefabGage); m_objGage.transform.SetParent(m_objMainCanvas.transform, false); m_objGage.SetActive(false); m_objReady = Instantiate(prefabReady); m_objReady.transform.SetParent(m_objMainCanvas.transform, false); m_objReady.SetActive(false); initHitRecord(); initStrikeMark(); m_objCamera = GetComponent <Camera>(); m_smoothFollow = GetComponent <SmoothFollow>(); GameObject objTopView = m_objMainCanvas.transform.Find("TopView").gameObject; m_topView = objTopView.GetComponent <TrailView>(); //m_topView.drawPoint = true; //m_topView.drawGrid(); GameObject objSideView = m_objMainCanvas.transform.Find("SideView").gameObject; m_sideView = objSideView.GetComponent <TrailView>(); bool workInBackground = true; RawKeyInput.Start(workInBackground); setGamePhase(GamePhase_Busy); setSensorPhase(SensorPhase_Busy); //m_objBatter.setBatterSide( BatterSide_None ); }
public int a; //配列番号取得?用変数 private void OnEnable() { RawKeyInput.Start(true); RawKeyInput.OnKeyUp += OnKeyUp; RawKeyInput.OnKeyDown += OnKeyDown; }