summaryrefslogtreecommitdiffstats
path: root/HapticKeyboard/Tweak.x
blob: 847cb800bff81d406d67199531f26a1361e05cd4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
@interface UIKeyboardLayoutStar : UIView
@property (nonatomic, retain) UIImpactFeedbackGenerator *feedback;
@end

%hook UIKeyboardLayoutStar
%property (nonatomic, retain) UIImpactFeedbackGenerator *feedback;

-(void)touchDownWithKey:(id)arg1 withTouchInfo:(id)arg2 atPoint:(CGPoint)arg3 executionContext:(id)arg4
{
	%orig;
	if (!self.feedback)
		self.feedback = UIImpactFeedbackGenerator.alloc.init;
	[self.feedback prepare];
	[self.feedback impactOccurred];
}

%end