Mercurial > sdl-ios-xcode
comparison src/video/cocoa/SDL_cocoawindow.m @ 1958:5fc6fb0fb605
Added right/other drag code for Cocoa windows
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sat, 29 Jul 2006 23:00:15 +0000 |
parents | c7803e4c21d3 |
children | 25d6537feea4 |
comparison
equal
deleted
inserted
replaced
1957:c7803e4c21d3 | 1958:5fc6fb0fb605 |
---|---|
212 point.y = rect.size.height - (point.y - rect.origin.y); | 212 point.y = rect.size.height - (point.y - rect.origin.y); |
213 SDL_SendMouseMotion(index, 0, (int)point.x, (int)point.y); | 213 SDL_SendMouseMotion(index, 0, (int)point.x, (int)point.y); |
214 } | 214 } |
215 | 215 |
216 - (void)mouseDragged:(NSEvent *)theEvent | 216 - (void)mouseDragged:(NSEvent *)theEvent |
217 { | |
218 [self mouseMoved:theEvent]; | |
219 } | |
220 | |
221 - (void)rightMouseDragged:(NSEvent *)theEvent | |
222 { | |
223 [self mouseMoved:theEvent]; | |
224 } | |
225 | |
226 - (void)otherMouseDragged:(NSEvent *)theEvent | |
217 { | 227 { |
218 [self mouseMoved:theEvent]; | 228 [self mouseMoved:theEvent]; |
219 } | 229 } |
220 | 230 |
221 - (void)scrollWheel:(NSEvent *)theEvent | 231 - (void)scrollWheel:(NSEvent *)theEvent |