comparison src/events/SDL_keyboard.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
483 break; 483 break;
484 } 484 }
485 } 485 }
486 } 486 }
487 if (!focus) { 487 if (!focus) {
488 SDL_SendWindowEvent(windowID, SDL_WINDOWEVENT_FOCUS_GAINED, 0, 0); 488 SDL_SendWindowEvent(keyboard->focus, SDL_WINDOWEVENT_FOCUS_LOST,
489 0, 0);
489 } 490 }
490 } 491 }
491 492
492 keyboard->focus = windowID; 493 keyboard->focus = windowID;
493 494
502 break; 503 break;
503 } 504 }
504 } 505 }
505 } 506 }
506 if (!focus) { 507 if (!focus) {
507 SDL_SendWindowEvent(windowID, SDL_WINDOWEVENT_FOCUS_LOST, 0, 0); 508 SDL_SendWindowEvent(keyboard->focus, SDL_WINDOWEVENT_FOCUS_GAINED,
509 0, 0);
508 } 510 }
509 } 511 }
510 } 512 }
511 513
512 int 514 int