ebiten: Add a comment about Vibrate

This commit is contained in:
Hajime Hoshi 2021-12-04 17:48:09 +09:00
parent aafa20c222
commit b638b72f0b

View File

@ -22,6 +22,10 @@ import (
//
// Vibrate works on mobiles and browsers.
//
// On Android, this line is required in the manifest setting to use the vibration:
//
// <uses-permission android:name="android.permission.VIBRATE"/>
//
// Vibrate is concurrent-safe.
func Vibrate(duration time.Duration) {
uiDriver().Vibrate(duration)