comparison src/events/SDL_mouse.c @ 3112:8f3fd508734b

New last cursor position must rely on the clamped coordinates.
author Mike Gorchak <lestat@i.com.ua>
date Tue, 28 Apr 2009 04:43:21 +0000
parents b93965a16fe0
children 8c12052ddc7b
comparison
equal deleted inserted replaced
3111:14d32495a502 3112:8f3fd508734b
471 event.motion.pressure_max = mouse->pressure_max; 471 event.motion.pressure_max = mouse->pressure_max;
472 event.motion.pressure_min = mouse->pressure_min; 472 event.motion.pressure_min = mouse->pressure_min;
473 event.motion.cursor = mouse->current_end; 473 event.motion.cursor = mouse->current_end;
474 posted = (SDL_PushEvent(&event) > 0); 474 posted = (SDL_PushEvent(&event) > 0);
475 } 475 }
476 mouse->last_x = x; 476 mouse->last_x = mouse->x;
477 mouse->last_y = y; 477 mouse->last_y = mouse->y;
478 return posted; 478 return posted;
479 } 479 }
480 480
481 int 481 int
482 SDL_SendMouseButton(int id, Uint8 state, Uint8 button) 482 SDL_SendMouseButton(int id, Uint8 state, Uint8 button)