mirror of
https://github.com/zydeco/minivmac4ios.git
synced 2025-02-20 14:29:19 +00:00
add side swipe gestures to show insert disk and settings
This commit is contained in:
parent
f21cb523de
commit
f0449fbec3
@ -20,13 +20,22 @@
|
||||
@implementation ViewController
|
||||
{
|
||||
KBKeyboardView *keyboardView;
|
||||
UISwipeGestureRecognizer *showKeyboardGesture, *hideKeyboardGesture;
|
||||
UISwipeGestureRecognizer *showKeyboardGesture, *hideKeyboardGesture, *insertDiskGesture, *showSettingsGesture;
|
||||
UIControl *pointingDeviceView;
|
||||
}
|
||||
|
||||
- (void)viewDidLoad {
|
||||
[super viewDidLoad];
|
||||
[self installKeyboardGestures];
|
||||
insertDiskGesture = [[UISwipeGestureRecognizer alloc] initWithTarget:[AppDelegate sharedInstance] action:@selector(showInsertDisk:)];
|
||||
insertDiskGesture.direction = UISwipeGestureRecognizerDirectionLeft;
|
||||
insertDiskGesture.numberOfTouchesRequired = 2;
|
||||
[self.view addGestureRecognizer:insertDiskGesture];
|
||||
|
||||
showSettingsGesture = [[UISwipeGestureRecognizer alloc] initWithTarget:[AppDelegate sharedInstance] action:@selector(showSettings:)];
|
||||
showSettingsGesture.direction = UISwipeGestureRecognizerDirectionRight;
|
||||
showSettingsGesture.numberOfTouchesRequired = 2;
|
||||
[self.view addGestureRecognizer:showSettingsGesture];
|
||||
}
|
||||
|
||||
- (BOOL)prefersStatusBarHidden {
|
||||
|
Loading…
x
Reference in New Issue
Block a user