public UrielForm(UrielConfiguration configuration) { this.configuration = configuration; if (configuration.WorkflowMode != UrielWorkflowMode.MovieMode) { this.watcher = new ShaderFileWatcher(configuration.WatchDirectory); watcher.Run(); } this.renderLoop = new RenderLoop(); this.builder = new ShaderBuilder(ShaderZoo.BadShaderArguments()); this.FrameTracker = new FrameTracker(); this.ShaderBlobs = new BindingList <ShaderBlob>(); this.listener = new KeyPressListener(); this.tks = new TotalKeyState(); this.ki = new KeyInterpreter(); InitializeComponent(); }
private void ActivateKeyInterpreter() { if (_ki == null) _ki = new KeyInterpreter(this); if (_ki == _keyInterpreter) return; if (_keyInterpreter != null) _keyInterpreter.Deactivate(); _keyInterpreter = _ki; _keyInterpreter.Activate(); }
private void ActivateKeyInterpreter() { if (keyInterpreter == null) keyInterpreter = new KeyInterpreter(this); if (keyInterpreter == currentKeyInterpreter) return; if (currentKeyInterpreter != null) currentKeyInterpreter.Deactivate(); currentKeyInterpreter = keyInterpreter; currentKeyInterpreter.Activate(); }
private void ActivateKeyInterpreter() { if (this._ki == null) { this._ki = new KeyInterpreter(this); } if (this._ki != this._keyInterpreter) { if (this._keyInterpreter != null) { this._keyInterpreter.Deactivate(); } this._keyInterpreter = this._ki; this._keyInterpreter.Activate(); } }