diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/Fl_cocoa.mm | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/src/Fl_cocoa.mm b/src/Fl_cocoa.mm index f461505ee..8aef33780 100644 --- a/src/Fl_cocoa.mm +++ b/src/Fl_cocoa.mm @@ -966,32 +966,6 @@ static void cocoaMagnifyHandler(NSEvent *theEvent) } /* - * Cocoa Rotate Gesture Handler - */ -static void cocoaRotateHandler(NSEvent *theEvent) -{ -#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_6 - fl_lock_function(); - Fl_Window *window = (Fl_Window*)[(FLWindow*)[theEvent window] getFl_Window]; - if ( !window->shown() ) { - fl_unlock_function(); - return; - } - Fl::first_window(window); - Fl::e_dy = [theEvent rotation]*1000; - if ( Fl::e_dy) { - NSPoint pos = [theEvent locationInWindow]; - pos.y = window->h() - pos.y; - NSUInteger mods = [theEvent modifierFlags]; - mods_to_e_state( mods ); - update_e_xy_and_e_xy_root([theEvent window]); - Fl::handle( FL_ROTATE_GESTURE, window ); - } - fl_unlock_function(); -#endif -} - -/* * Cocoa Mouse Button Handler */ static void cocoaMouseHandler(NSEvent *theEvent) @@ -2465,9 +2439,6 @@ static FLTextInputContext* fltextinputcontext_instance = nil; - (void)magnifyWithEvent:(NSEvent *)theEvent { cocoaMagnifyHandler(theEvent); } -- (void)rotateWithEvent:(NSEvent *)theEvent { - cocoaRotateHandler(theEvent); -} - (void)keyDown:(NSEvent *)theEvent { //NSLog(@"keyDown:%@",[theEvent characters]); fl_lock_function(); |
