---
title: buttonMask
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uievent/buttonmask-swift.property
---

# buttonMask

A bit mask that represents which input-device buttons are pressed for the current event.

## Declaration

```swift
var buttonMask: UIEvent.ButtonMask { get }
```

## See Also

### Getting the button mask

- [UIEvent.ButtonMask](uikit/uievent/buttonmask-swift.struct.md)
