Tenith01 / HapticFeedback

📳 Perform haptic feedback on both iOS and Android devices.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

HapticFeedback

📳 Perform haptic feedback on both iOS and Android devices.

npm

Installation

Unity Package Manager

https://docs.unity3d.com/Packages/com.unity.package-manager-ui@2.0/manual/index.html

Git

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

Scoped UPM Registry

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

Usage

First include the package.

using CandyCoded.HapticFeedback;

Light Feedback

HapticFeedback.LightFeedback();

Medium Feedback

HapticFeedback.MediumFeedback();

Heavy Feedback

HapticFeedback.HeavyFeedback();

About

📳 Perform haptic feedback on both iOS and Android devices.

License:MIT License


Languages

Language:C# 61.0%Language:Objective-C++ 19.8%Language:Java 13.0%Language:Makefile 6.2%