protected override void Update(GameTime gameTime) { EFInput.Update(); if (IsActive) { scene.Update(); } if (EFInput.KeyWasPressed(Keys.F4)) { Exit(); } EFInput.TextInput = '\0'; base.Update(gameTime); }
public void Update() { Vector2 pos = drawPos; pos.X += titleWidth; for (int i = 0; i < flags.Length; i++) { if (EFInput.MouseWasPressed(MouseButtonEnum.RightButton) && EFInput.GetCursorRectF.Intersects(new RectangleF(pos.X, pos.Y, letterWidth, letterWidth))) { // click if (SingleValue) { AllToFalse(); } Toggle(i + from, true); } pos.X += letterWidth; } }