Mouse events now report the correct window id and window enter/leave events are now reported.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403654
This commit is contained in:
Bob Pendleton 2009-06-11 20:08:33 +00:00
parent fa620100d8
commit 75ffaf1d21
3 changed files with 21 additions and 9 deletions

View file

@ -97,6 +97,7 @@ SDL_AddMouse(const SDL_Mouse * mouse, char *name, int pressure_max,
/* we're setting the mouse properties */
length = 0;
length = SDL_strlen(name);
SDL_mice[index]->focus = 0;
SDL_mice[index]->name = SDL_malloc((length + 2) * sizeof(char));
SDL_strlcpy(SDL_mice[index]->name, name, length + 1);
SDL_mice[index]->pressure_max = pressure_max;