public bool EstNouvelleTouche(Keys touche) { int NbTouches = AnciennesTouches.Length; bool EstNouvelleTouche = ÉtatClavier.IsKeyDown(touche); int i = 0; while (i < NbTouches && EstNouvelleTouche) { EstNouvelleTouche = AnciennesTouches[i] != touche; ++i; } return(EstNouvelleTouche); }
public bool EstEnfoncée(Keys touche) { return(ÉtatClavier.IsKeyDown(touche)); }