MouseButton.cs 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /**
  2. * Copyright (c) 2021 Vuplex Inc. All rights reserved.
  3. *
  4. * Licensed under the Vuplex Commercial Software Library License, you may
  5. * not use this file except in compliance with the License. You may obtain
  6. * a copy of the License at
  7. *
  8. * https://vuplex.com/commercial-library-license
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. namespace Vuplex.WebView {
  17. /// <summary>
  18. /// Enum for the different mouse buttons.
  19. /// </summary>
  20. /// <summary>
  21. /// This enum's values are compatible with those from
  22. /// the UnityEngine.EventSystem [`InputButton`](https://docs.unity3d.com/Packages/com.unity.ugui@1.0/api/UnityEngine.EventSystems.PointerEventData.InputButton.html) enum,
  23. /// so you can safely cast an `InputButton` to a `MouseButton`.
  24. /// </summary>
  25. public enum MouseButton {
  26. /// <summary>
  27. /// The left mouse button (i.e. left click).
  28. /// </summary>
  29. Left = 0,
  30. /// <summary>
  31. /// The right mouse button (i.e. right click).
  32. /// </summary>
  33. Right = 1,
  34. /// <summary>
  35. /// The center mouse button.
  36. /// </summary>
  37. Middle = 2
  38. }
  39. }