Пример #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);
 }
Пример #2
0
 public virtual void HandleInput(InputHelper input)
 {
 }
Пример #3
0
 public override void HandleInput(InputHelper input)
 {
     isPressed = input.IsMouseButtonPresed(MouseButton.Left) && BoundingBox.Contains((int)input.MousePosition.X, (int)input.MousePosition.Y);
 }
Пример #4
0
 public virtual void HandleInput(InputHelper input)
 {
 }
Пример #5
0
 public override void HandleInput(InputHelper input)
 {
     isPressed = input.IsMouseButtonPresed(MouseButton.Left) && BoundingBox.Contains((int)input.MousePosition.X, (int)input.MousePosition.Y);
 }