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