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 UpdateKeyStateLabel(TotalKeyState tks) { KeyState.Text = string.Format("TKS: [{0},{1},{2}] [{3}, {4}, {5}]", tks.Position.x, tks.Position.y, tks.Position.z, tks.Movement.x, tks.Movement.y, tks.Movement.z); }
private void UpdateKeys() { this.tks = this.ki.Update(this.tks, this.listener.CurrentKeys); }