Contents

button(_:)

Creates a button mask from the specified button index.

Declaration

static func button(_ buttonNumber: Int) -> UIEvent.ButtonMask

Parameters

  • buttonNumber:

    The index of the button on the input device. Pass 1 to represent Primary, and 2 to represent Secondary.

See Also

Creating button masks