comparison src/events/SDL_mouse.c @ 1732:fd65f12b6de6 SDL-1.3

Implemented Win32 input grab
author Sam Lantinga <slouken@libsdl.org>
date Sat, 08 Jul 2006 20:55:39 +0000
parents 875c3cf1a12c
children
comparison
equal deleted inserted replaced
1731:875c3cf1a12c 1732:fd65f12b6de6
288 break; 288 break;
289 } 289 }
290 } 290 }
291 } 291 }
292 if (!focus) { 292 if (!focus) {
293 SDL_SendWindowEvent(windowID, SDL_WINDOWEVENT_LEAVE, 0, 0); 293 SDL_SendWindowEvent(mouse->focus, SDL_WINDOWEVENT_LEAVE, 0, 0);
294 } 294 }
295 } 295 }
296 296
297 mouse->focus = windowID; 297 mouse->focus = windowID;
298 298
307 break; 307 break;
308 } 308 }
309 } 309 }
310 } 310 }
311 if (!focus) { 311 if (!focus) {
312 SDL_SendWindowEvent(windowID, SDL_WINDOWEVENT_ENTER, 0, 0); 312 SDL_SendWindowEvent(mouse->focus, SDL_WINDOWEVENT_ENTER, 0, 0);
313 } 313 }
314 } 314 }
315 } 315 }
316 316
317 int 317 int