Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #import "control.h"
- #import <QuartzCore/QuartzCore.h>
- %hook SBVolumeHardwareButtonActions
- CFTimeInterval startTime = CACurrentMediaTime();
- -(void)volumeIncreasePressDown
- {
- }
- CFTimeInterval elapsedTime = CACurrentMediaTime() - startTime;
- -(void)volumeIncreasePressUp {
- if(elapsedTime >= 1) {
- [[%c(SBMediaController) sharedInstance] changeTrack: 1];
- } else {
- }
- }
- %end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement