Android call vibrate method in cocos2dx enviroment (cocos2d call vibrator vibrate method example)
How to call vibrate effect in cocos2dx environment ? Here is simple example code to call vibrate effect in cocos2dThis sample based on C++ with Visual studioFirst, create service class to call vibrate whenever you want. [DeviceServices.h]class DeviceServices{public:DeviceServices();~DeviceServices(); // Android vibrate effect call methodvoid callVibrateEffect();}; [DeviceServices.cpp]#include "D..
개발/코딩
2016. 9. 21. 11:47
최근댓글