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.
- Host: GitHub
- URL: https://github.com/candycoded/hapticfeedback
- Owner: CandyCoded
- License: mit
- Created: 2021-01-23T22:39:48.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-03-19T03:49:31.000Z (about 5 years ago)
- Last Synced: 2025-04-02T17:06:41.820Z (about 1 year ago)
- Topics: android, haptic, ios
- Language: C#
- Homepage:
- Size: 107 KB
- Stars: 99
- Watchers: 3
- Forks: 19
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# HapticFeedback
> 📳 Perform haptic feedback on both iOS and Android devices.
[](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();
```