comparison src/events/SDL_mouse.c @ 3195:08747e24a50f

Mouse events now report the correct window id and window enter/leave events are now reported.
author Bob Pendleton <bob@pendleton.com>
date Thu, 11 Jun 2009 20:08:33 +0000
parents 91b335df6fc8
children 5d7ef5970073
comparison
equal deleted inserted replaced
3194:c18c03927a77 3195:08747e24a50f
95 *SDL_mice[index] = *mouse; 95 *SDL_mice[index] = *mouse;
96 96
97 /* we're setting the mouse properties */ 97 /* we're setting the mouse properties */
98 length = 0; 98 length = 0;
99 length = SDL_strlen(name); 99 length = SDL_strlen(name);
100 SDL_mice[index]->focus = 0;
100 SDL_mice[index]->name = SDL_malloc((length + 2) * sizeof(char)); 101 SDL_mice[index]->name = SDL_malloc((length + 2) * sizeof(char));
101 SDL_strlcpy(SDL_mice[index]->name, name, length + 1); 102 SDL_strlcpy(SDL_mice[index]->name, name, length + 1);
102 SDL_mice[index]->pressure_max = pressure_max; 103 SDL_mice[index]->pressure_max = pressure_max;
103 SDL_mice[index]->pressure_min = pressure_min; 104 SDL_mice[index]->pressure_min = pressure_min;
104 SDL_mice[index]->cursor_shown = SDL_TRUE; 105 SDL_mice[index]->cursor_shown = SDL_TRUE;