Mercurial > sdl-ios-xcode
comparison src/video/bwindow/SDL_sysevents.cc @ 1:cf2af46e9e2a
Changes since SDL 1.2.0 release
author | Sam Lantinga <slouken@lokigames.com> |
---|---|
date | Thu, 26 Apr 2001 16:50:19 +0000 |
parents | 74212992fb08 |
children | e8157fcb3114 |
comparison
equal
deleted
inserted
replaced
0:74212992fb08 | 1:cf2af46e9e2a |
---|---|
260 SDL_SetCursor(NULL); | 260 SDL_SetCursor(NULL); |
261 } | 261 } |
262 | 262 |
263 /* Check for mouse motion */ | 263 /* Check for mouse motion */ |
264 if ( point != last_point ) { | 264 if ( point != last_point ) { |
265 SDL_PrivateMouseMotion(0, 0, (int)point.x, (int)point.y); | 265 int x, y; |
266 | |
267 SDL_Win->GetXYOffset(x, y); | |
268 x = (int)point.x - x; | |
269 y = (int)point.y - y; | |
270 SDL_PrivateMouseMotion(0, 0, x, y); | |
266 } | 271 } |
267 last_point = point; | 272 last_point = point; |
268 | 273 |
269 /* Add any mouse button events */ | 274 /* Add any mouse button events */ |
270 for ( i=0; i<SDL_TABLESIZE(button_masks); ++i ) { | 275 for ( i=0; i<SDL_TABLESIZE(button_masks); ++i ) { |