An open API service indexing awesome lists of open source software.

https://github.com/candycoded/hapticfeedback

📳 Perform haptic feedback on both iOS and Android devices.
https://github.com/candycoded/hapticfeedback

android haptic ios

Last synced: about 1 year ago
JSON representation

📳 Perform haptic feedback on both iOS and Android devices.

Awesome Lists containing this project

README

          

# HapticFeedback

> 📳 Perform haptic feedback on both iOS and Android devices.

[![npm](https://img.shields.io/npm/v/xyz.candycoded.hapticfeedback)](https://www.npmjs.com/package/xyz.candycoded.hapticfeedback)

## Installation

### Unity Package Manager

#### Git

```json
{
"dependencies": {
"xyz.candycoded.hapticfeedback": "https://github.com/CandyCoded/HapticFeedback.git#v1.0.3",
...
}
}
```

#### Scoped UPM Registry

```json
{
"dependencies": {
"xyz.candycoded.hapticfeedback": "1.0.3",
...
},
"scopedRegistries": [
{
"name": "candycoded",
"url": "https://registry.npmjs.com",
"scopes": ["xyz.candycoded"]
}
]
}
```

## Usage

First include the package.

```csharp
using CandyCoded.HapticFeedback;
```

### Light Feedback

```csharp
HapticFeedback.LightFeedback();
```

### Medium Feedback

```csharp
HapticFeedback.MediumFeedback();
```

### Heavy Feedback

```csharp
HapticFeedback.HeavyFeedback();
```