Skip to content

Instantly share code, notes, and snippets.

@bored-engineer
Forked from TooTallNate/vib.c
Created June 4, 2011 04:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bored-engineer/1007584 to your computer and use it in GitHub Desktop.
Save bored-engineer/1007584 to your computer and use it in GitHub Desktop.
Attempt at using the iOS private `GSEventVibrateForDuration` function... this doesn't seem to work...
// To compile:
// gcc -o vib vib.c -F/System/Library/PrivateFrameworks -framework GraphicsServices
#import <GraphicsServices/GSEvent.h>
int main() {
GSEventVibrateForDuration(3.5f);
sleep(3500);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment