# Touch

Class · category: Input Devices

Source: https://github.com/playcanvas/engine/blob/970d89f6d3bc6667f4e1f88153abd6e7e82ed52c/src/platform/input/touch-event.js#L40

A instance of a single point touch on a [TouchDevice](https://api.playcanvas.com/engine/classes/TouchDevice.md).

## Constructors

### constructor

```ts
new Touch(touch: Touch)
```

Create a new Touch object from the browser Touch.

**Parameters**

- `touch` (`Touch`): The browser Touch object.

## Properties

### id

```ts
id: number
```

The identifier of the touch.

### target

```ts
target: Element
```

The target DOM element of the touch event.

### touch

```ts
touch: Touch
```

The original browser Touch object.

### x

```ts
x: number
```

The x coordinate relative to the element that the TouchDevice is attached to.

### y

```ts
y: number
```

The y coordinate relative to the element that the TouchDevice is attached to.
