> For the complete documentation index, see [llms.txt](https://minwork.gitbook.io/long-press-hook/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://minwork.gitbook.io/long-press-hook/advanced/options/configuration/events-detection.md).

# Events detection

#### Name

`detect`

#### Type

{% code title="Javascript" %}

```javascript
'mouse' | 'touch' | 'pointer'
```

{% endcode %}

{% code title="TypeScript" %}

```typescript
enum LongPressEventType {
  Mouse = 'mouse',
  Touch = 'touch',
  Pointer = 'pointer',
}
```

{% endcode %}

#### Default value

{% code title="Javascript" %}

```javascript
'pointer'
```

{% endcode %}

{% code title="TypeScript" %}

```typescript
LongPressEventType.Pointer
```

{% endcode %}

#### Description

Which [event handlers](/long-press-hook/advanced/hook-result-bind-function/handlers.md) should be returned from [bind function](/long-press-hook/advanced/hook-result-bind-function.md).
