Bigfoot71 / raymob

Simple raylib implementation for Android
Other
85 stars 19 forks source link

Vibration is not working #15

Closed mfbulut closed 6 months ago

mfbulut commented 6 months ago

My device is Samsung A52 and I was unable to vibrate the device I call Vibrate(1.0f) and nothing happens

I use latest androuid studio and NDK

mfbulut commented 6 months ago

my bad i did't know you have to enable it via

features.vibration=true

Bigfoot71 commented 6 months ago

Yes, because it is necessary to include the permission in the AndroidManifest, which is:

<uses-permission android:name="android.permission.VIBRATE"/>

As with all the features supported by raymob that require permissions, it is indeed centralized in the gradle.properties for simplicity reasons.