Exemple #1
0
 /// <summary>
 /// Loops over all GUI Elements in the List and handles input
 /// </summary>
 /// <param name="input"></param>
 public void HandleInput(InputHelper input)
 {
     foreach (GUIElement element in guiElements)
         element.HandleInput(input);
 }
Exemple #2
0
 public virtual void HandleInput(InputHelper input)
 {
 }
Exemple #3
0
 public override void HandleInput(InputHelper input)
 {
     isPressed = input.IsMouseButtonPresed(MouseButton.Left) && BoundingBox.Contains((int)input.MousePosition.X, (int)input.MousePosition.Y);
 }
Exemple #4
0
 public virtual void HandleInput(InputHelper input)
 {
 }
Exemple #5
0
 public override void HandleInput(InputHelper input)
 {
     isPressed = input.IsMouseButtonPresed(MouseButton.Left) && BoundingBox.Contains((int)input.MousePosition.X, (int)input.MousePosition.Y);
 }