Vidz18HD,vibrator怎么使用

作者:

While not strictly an input device,itneverthelessisakindofaperipheral.wefeltitbelongedintheinputmodel。

thevibratorallowsyoutovibratethephoneofauser.thiscanbeusedsimilartomoresophisticatedforcefeedbackfunctionalityfoundcomonlyiondconed

thevibratorisonlyavailableonandroidandneedsaspecialpermissioninthemanifestfile

Android.permission.vibrateseetheapplicationconfigurationsectionifyouareunsurehowtospecifypermissionsiourandroidmanifest

vibratingthephoneworksasfollows :

gdx.input.vibrate(2000; astheparameterisgiveninmillis快三表格大小单双和值terisgiveninmillisecondstheexampleabovewillvibratethephonefor2seconds。

moresophisticatedpatternscanbespecifiedviathesecondvibrate () method:

gdx.input.vibrate (newlong [ ] { 0,200,200,-1}; thiswillturnthevibratoronfor 200 milliseconds,thenturnitoffor 200 millisecondsthenonagainforanother 200 milliseconds.thesecondppfor

评论

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注