/// <summary> /// Wird bei Tastendruck ausgelöst /// </summary> /// <param name="e"></param> public override void KeyPressed(KeyEventArgs e) { //M swich Dotmode if (e.KeyCode == Keys.M) { Dots = (DotStyle)(((int)Dots + 1) % 3); } // % 4 für Kugeln aber sehr langsam //F7 Pointfield grow on/off if (e.KeyCode == Keys.F7) { reverse = !reverse; } //F8 shrink/grow Punktfeld if (e.KeyCode == Keys.F8) { shrink = !shrink; } //F9 Simulationsart switch if (e.KeyCode == Keys.F9) { form = (ParticleForms)(((int)form + 1) % 4); } if (e.KeyCode == Keys.D1) { f1 = !f1; } if (e.KeyCode == Keys.D2) { f2 = !f2; } if (e.KeyCode == Keys.D3) { f3 = !f3; } if (e.KeyCode == Keys.D4) { f4 = !f4; } if (e.KeyCode == Keys.D5) { f5 = !f5; } if (e.KeyCode == Keys.D6) { f6 = !f6; } //L Pointfield Flat if (e.KeyCode == Keys.L) { forms = initForms.flat; InitPoints(); } //B Pointfield Würfel if (e.KeyCode == Keys.B) { forms = initForms.cube; InitPoints(); } ////U Pointfields Universe //if (e.KeyCode == Keys.U) //{ // forms = initForms.universe; // InitPoints(); //} }
/// <summary> /// Wird bei Tastendruck ausgelöst /// </summary> /// <param name="e"></param> public override void KeyPressed(KeyEventArgs e) { //M swich Dotmode if (e.KeyCode == Keys.M) { Dots = (DotStyle)(((int)Dots + 1) % 3); } // % 4 für Kugeln aber sehr langsam //F7 Pointfield grow on/off if (e.KeyCode == Keys.F7) { reverse = !reverse; } //F8 shrink/grow Punktfeld if (e.KeyCode == Keys.F8) { shrink = !shrink; } //F9 Simulationsart switch if (e.KeyCode == Keys.F9) { form = (ParticleForms)(((int)form + 1) % 4); } if (e.KeyCode == Keys.D1) { f1 = !f1; } if (e.KeyCode == Keys.D2) { f2 = !f2; } if (e.KeyCode == Keys.D3) { f3 = !f3; } if (e.KeyCode == Keys.D4) { f4 = !f4; } if (e.KeyCode == Keys.D5) { f5 = !f5; } if (e.KeyCode == Keys.D6) { f6 = !f6; } //L Pointfield Flat if (e.KeyCode == Keys.L) { forms = initForms.flat; InitPoints(); } //B Pointfield Würfel if (e.KeyCode == Keys.B) { forms = initForms.cube; InitPoints(); } ////U Pointfields Universe //if (e.KeyCode == Keys.U) //{ // forms = initForms.universe; // InitPoints(); //} }