Mercurial > sdl-ios-xcode
diff src/video/cocoa/SDL_cocoaevents.m @ 4670:ad4f32e874ee
Added preliminary touch code to SDL_cocoakeyboard.m
author | jimtla |
---|---|
date | Sat, 24 Jul 2010 22:28:38 +0400 |
parents | 62e6a6e9720b |
children | c0021a587dc7 |
line wrap: on
line diff
--- a/src/video/cocoa/SDL_cocoaevents.m Thu Jul 22 08:12:28 2010 +0400 +++ b/src/video/cocoa/SDL_cocoaevents.m Sat Jul 24 22:28:38 2010 +0400 @@ -192,6 +192,9 @@ if ( event == nil ) { break; } + + //printf("Type: %i, Subtype: %i\n",[event type],[event subtype]); + switch ([event type]) { case NSLeftMouseDown: case NSOtherMouseDown: @@ -203,6 +206,7 @@ case NSRightMouseDragged: case NSOtherMouseDragged: /* usually middle mouse dragged */ case NSMouseMoved: + printf("Mouse Type: %i, Subtype: %i\n",[event type],[event subtype]); Cocoa_HandleMouseEvent(_this, event); /* Pass through to NSApp to make sure everything stays in sync */ [NSApp sendEvent:event]; @@ -217,8 +221,8 @@ if (([event modifierFlags] & NSCommandKeyMask) || [event type] == NSFlagsChanged) [NSApp sendEvent: event]; break; - case NSBeginTouch: - printf("Touch Event Received\n"); + case NSTabletPoint: + printf("Tablet Event Received\n"); default: [NSApp sendEvent:event]; break;