Open jgjake2 opened 9 years ago
Would it be possible to add button click support? something like this:
%hook SpringBoard - (void)menuButtonUp:(GSEventRef)event { %orig(event); if([[DreamBoard sharedInstance] dbtheme]) [[DreamBoard sharedInstance].dbtheme onHomeButtonPress]; } - (void)_menuButtonUp:(GSEventRef)event { %orig(event); if([[DreamBoard sharedInstance] dbtheme]) [[DreamBoard sharedInstance].dbtheme onHomeButtonPress]; } %end // DBTheme.mm -(void)onHomeButtonPress{ //if(lockView)[lockView removeFromSuperview]; if(dictTheme[@"OnHomeButtonPress"]){ for(NSString *action in dictTheme[@"OnHomeButtonPress"]) [DBActionParser parseAction:action]; } }
I just cant setup a stable compiling environment or I would do it myself :/
Would it be possible to add button click support? something like this:
I just cant setup a stable compiling environment or I would do it myself :/