# PenButton

> Describes a PenButton. Based on W3 conventions: https://www.w3.org/TRpointerevents2#the-buttons-property.

## Definition

* **Type:** Enum
* **Namespace:** [UnityEngine.UIElements](/engine/6000.5/script-reference/unityengine/uielements.md)
* **Assembly:** UnityEngine.UIElementsModule

```csharp
public enum PenButton
```

## Fields

| Value                                                                                        | Description            |
| -------------------------------------------------------------------------------------------- | ---------------------- |
| [PenBarrel](/engine/6000.5/script-reference/unityengine/uielements/penbutton/penbarrel.md)   | The Pen Barrel Button. |
| [PenContact](/engine/6000.5/script-reference/unityengine/uielements/penbutton/pencontact.md) | The Pen is in Contact. |
| [PenEraser](/engine/6000.5/script-reference/unityengine/uielements/penbutton/peneraser.md)   | The Pen Eraser.        |
