About • Installation • Usage • API • Contribute • Downloads
This plugin help to use haptics on mobile app (Android/iOS). Because the default vibration options of Godot is a bit to strong on some old Android/iOS device since vibration duration does not work on them.
Notes: On iPhone, haptics only available on newer modals.
Was build using automation scripts combine with CI/CD to help faster the release progress and well as release hotfix which save some of our times.
Support Godot 3 & 4.
Download the android plugin (match your Godot version), extract them to your_project/android/plugins
Enable Haptics
plugin in your android export preset
Enable Haptics
permission.
Note: You must use custom build for Android to use plugins.
Download the ios plugin (match your Godot version), extract them to ios/plugins
Enable Haptics
plugin in your ios export preset
You will need to add an autoload
script to use this plugin more easily.
Download autoload file to your game (Choose correct Godot version). Add it to your project autoload
list.
Then you can easily use it anywhere with:
Haptics.light()
Haptics.medium()
Haptics.heavy()
Why have to call `init()`. Well, if you don't want to call init, you can change `init()` to `_ready()` on the `autoload` file. But for my experience when using a lots of plugin, init all plugins on `_ready()` is not a good idea. So i let you choose whenever you init the plugin. When showing a loading scene...etc...
For more detail, see [examples](./example/)
# API
## Methods
```gdscript
void light() # A collision between small, light user interface elements
void medium() # A collision between moderately sized user interface elements
void heavy() # A collision between large, heavy user interface elements
I want to help contribute to Godot community so i create these plugins. I've prepared almost everything to help the development and release progress faster and easier.
Only one command and you'll build, release this plugin. Read DEVELOP.md for more information.
If you found bug of the plugin, please open issues.
If you have time to fix bugs or improve the plugins. Please open PR, it's always welcome.
MIT © Kyoz