MouseButton.cs 1.4 KB

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