Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- AudioServicesPlaySystemSound(kSystemSoundID_Vibrate);
- MeCCA_Vibrator *v = new MeCCA_Vibrator;
- v->activate(1);
- sleep(5);
- v->deactivate();
- extern void * _CTServerConnectionCreate(CFAllocatorRef, int (*)(void *, CFStringRef, CFDictionaryRef, void *), int *);
- extern int _CTServerConnectionSetVibratorState(int *, void *, int, int, float, float, float);
- connection = _CTServerConnectionCreate(kCFAllocatorDefault, &vibratecallback, &x);
- _CTServerConnectionSetVibratorState(&x, connection, 3, intensity, 0, 0, 0);
- _CTServerConnectionSetVibratorState(&x, connection, 0, 0, 0, 0, 0);
Add Comment
Please, Sign In to add comment