Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers AppGameKit Corner / Tier 1 Vibrate function

Author
Message
blink0k
Moderator
11
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 8th Feb 2017 01:27
I there anyway to make a device vibrate in Tier 1?
PSY
Developer
7
Years of Service
User Offline
Joined: 3rd Jul 2016
Location: Laniakea Supercluster
Posted: 9th Feb 2017 11:30
Nope.

Would be nice, though
PSY LABS Games
Coders don't die, they just gosub without return
damothegreat
User Banned
Posted: 9th Feb 2017 12:37
Maybe could pop your device on top of a washer perhaps?

CJB
Valued Member
20
Years of Service
User Offline
Joined: 10th Feb 2004
Location: Essex, UK
Posted: 9th Feb 2017 15:16
It's possible.
You could use the MESSAGE command in agkhelper.java, inject some vibrate code in there...something like:


You'll need to import android.os.Vibrator and include <uses-permission android:name="android.permission.VIBRATE"/> in the manifest.

Then just compile up your own version of the player and use the message command to vibrate in your Tier1 code like this:


p.s. this is not tested... code given for example of a possible solution only.
blink0k
Moderator
11
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 9th Feb 2017 21:09
thanks CJB but you lost me at "Then just compile up your own version of the player"
CJB
Valued Member
20
Years of Service
User Offline
Joined: 10th Feb 2004
Location: Essex, UK
Posted: 10th Feb 2017 09:56
Haha. OK. Best thing to do is add it to the feature requests and nag about it enough for Paul to include it in the next build. Would be a cool feature to have.
blink0k
Moderator
11
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 10th Feb 2017 21:01
thanks cjb. i'm keen to learn how to build a runtime if you can point me in the right direction?

Login to post a reply

Server time is: 2024-04-24 23:47:30
Your offset time is: 2024-04-24 23:47:30