Event.ButtonMask
Set of buttons pressed for the current event
public struct ButtonMask: OptionSet
Inheritance
OptionSet
Nested Type Aliases
RawValue
public typealias RawValue = Int
Initializers
init(rawValue:)
public init(rawValue: Int)
Properties
rawValue
public let rawValue: RawValue
primary
public static var primary: ButtonMask
secondary
public static var secondary: ButtonMask
Methods
button(_:)
Convenience initializer for a button mask where buttonNumber
is a one-based index of the button on the input device
public static func button(_ buttonNumber: Int) -> ButtonMask