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.

Author
Message
JRNTexas
12
Years of Service
User Offline
Joined: 24th May 2011
Location: Austin, Texas
Posted: 26th May 2014 05:51
Is there a command to access vibrate in AppGameKit Basic?
Naphier
13
Years of Service
User Offline
Joined: 2nd Oct 2010
Location: St Petersburg, Florida
Posted: 26th May 2014 09:57
No, but...
If you take a look at my java code where I repurposed the Message command to cause the app to move to the background, you could easily modify it to send a vibrate command.
Currently I call Message("-1") to move the app to the background. Then in java I just have a switch that looks for the message string to be equal to that. You can do the same for vibrate.
My code is here:
naplandgames.com/agk
The example on Stackoverflow to make vibrate can be found here:
http://stackoverflow.com/questions/13950338/how-to-make-an-android-device-vibrate

Login to post a reply

Server time is: 2024-04-27 18:12:12
Your offset time is: 2024-04-27 18:12:12