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

Published by

风君子

独自遨游何稽首 揭天掀地慰生平

发表回复

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