# PenData

> Structure describing the status of a pen event.

## Definition

* **Type:** Struct
* **Namespace:** [UnityEngine](/engine/6000.0/script-reference/unityengine.md)
* **Assembly:** UnityEngine.InputLegacyModule

```csharp
public struct PenData
```

## Remarks

The PenData struct is used by Unity to store data relating to a pen event. PenData contains information such as the position, pressure, and tilt of the pen for a given pen input event.

## Fields

| Value                                                                             | Description                                                                                                                                                         |
| --------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [contactType](/engine/6000.0/script-reference/unityengine/pendata/contacttype.md) | Contact type of a pen event, can be pen up, pen down, or no contact.                                                                                                |
| [deltaPos](/engine/6000.0/script-reference/unityengine/pendata/deltapos.md)       | The position delta since last pointer event in pixel coordinates.                                                                                                   |
| [penStatus](/engine/6000.0/script-reference/unityengine/pendata/penstatus.md)     | Specifies the state of the pen. For example, whether the pen is in contact with the screen or tablet, whether the pen is inverted, and whether buttons are pressed. |
| [position](/engine/6000.0/script-reference/unityengine/pendata/position.md)       | Specifies the position of the pen.                                                                                                                                  |
| [pressure](/engine/6000.0/script-reference/unityengine/pendata/pressure.md)       | How hard pen pressure is applied, normalized between 0 (no pressure) and 1 (maximum pressure).                                                                      |
| [tilt](/engine/6000.0/script-reference/unityengine/pendata/tilt.md)               | Specifies the angle of the pen relative to the X and Y axes, expressed in radians.                                                                                  |
| [twist](/engine/6000.0/script-reference/unityengine/pendata/twist.md)             | Specifies the rotation of the pen around its axis, expressed in radians.                                                                                            |
