Fixed crash when tablet isn't detected properly
--HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403178
This commit is contained in:
parent
a13b4b8736
commit
a4af7a72fe
2 changed files with 11 additions and 3 deletions
|
@ -374,6 +374,11 @@ SDL_SendProximity(int id, int x, int y, int type)
|
|||
int index = SDL_GetMouseIndexId(id);
|
||||
SDL_Mouse *mouse = SDL_GetMouse(index);
|
||||
int posted = 0;
|
||||
|
||||
if (!mouse) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
last_x = x;
|
||||
last_y = y;
|
||||
if (SDL_ProcessEvents[type] == SDL_ENABLE) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue