Beispiel #1
0
 private void MouseDown(Veldrid.Platform.MouseButton MouseButton)
 {
     if (_currentlyPressedMouseButtons.Add(MouseButton))
     {
         _newMouseButtonsThisFrame.Add(MouseButton);
     }
 }
Beispiel #2
0
 public bool GetMouseButtonDown(Veldrid.Platform.MouseButton button)
 {
     return(_newMouseButtonsThisFrame.Contains(button));
 }
Beispiel #3
0
 private void MouseUp(Veldrid.Platform.MouseButton MouseButton)
 {
     _currentlyPressedMouseButtons.Remove(MouseButton);
     _newMouseButtonsThisFrame.Remove(MouseButton);
 }
Beispiel #4
0
 public bool GetMouseButton(Veldrid.Platform.MouseButton button)
 {
     return(_currentlyPressedMouseButtons.Contains(button));
 }