MouseButton

public struct MouseButton : OptionSet

Specifies one or more mouse buttons as a set of options.

  • Declaration

    Swift

    public var rawValue: Int
  • Declaration

    Swift

    public init(rawValue: Int)
  • Represents no mouse button.

    Declaration

    Swift

    public static let none: MouseButton
  • Represents the left- or ‘primary’, mouse button. On platforms that automatically map left-handed mouse events to right-handed ones, this value is indistinct from either a right-handed left button click, or a left-handed right button click.

    Declaration

    Swift

    public static let left: MouseButton
  • Represents the right- or ‘secondary’, mouse button. On platforms that automatically map left-handed mouse events to right-handed ones, this value is indistinct from either a right-handed right button click, or a left-handed left button click.

    Declaration

    Swift

    public static let right: MouseButton
  • Represents the middle mouse button.

    Declaration

    Swift

    public static let middle: MouseButton