ebiten: Add comments about Vibrate

This commit is contained in:
Hajime Hoshi 2021-12-04 22:44:11 +09:00
parent 39ef252c2e
commit fdda0e625f

View File

@ -34,13 +34,15 @@ type VibrateOptions struct {
// //
// On browsers, Intensity in the options is ignored. // On browsers, Intensity in the options is ignored.
// //
// On Android, this line is required in the manifest setting to use the vibration: // On Android, this line is required in the manifest setting to use Vibrate:
// //
// <uses-permission android:name="android.permission.VIBRATE"/> // <uses-permission android:name="android.permission.VIBRATE"/>
// //
// On Android, Intensity in the options is recognized only when the API Level is 26 or newer. // On Android, Intensity in the options is recognized only when the API Level is 26 or newer.
// Otherwise, Intensity is ignored. // Otherwise, Intensity is ignored.
// //
// On iOS, CoreHaptics.framework is required to use Vibrate.
//
// On iOS, Vibrate works only when iOS version is 13.0 or newer. // On iOS, Vibrate works only when iOS version is 13.0 or newer.
// Otherwise, Vibrate does nothing. // Otherwise, Vibrate does nothing.
// //