Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
Fixed crash when tablet isn't detected properly
  • Loading branch information
slouken committed Aug 26, 2008
1 parent 93c32a5 commit 83e2586f0b8bc319b6b5df35ffdc6df67943b5b5

File 1 of 2 in 83e2586

@@ -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) {

0 comments on commit 83e2586

Please sign in to comment.