comparison src/events/SDL_keyboard.c @ 4750:22aa6a631d34

Changed StartTextInput to take an SDL_Window parameter.
author dewyatt
date Thu, 08 Jul 2010 01:35:47 -0400
parents 3e69e077cb95
children 11b0a6a3eb4d
comparison
equal deleted inserted replaced
4749:0fa503d49cb4 4750:22aa6a631d34
615 if (keyboard->focus) { 615 if (keyboard->focus) {
616 SDL_SendWindowEvent(keyboard->focus, SDL_WINDOWEVENT_FOCUS_GAINED, 616 SDL_SendWindowEvent(keyboard->focus, SDL_WINDOWEVENT_FOCUS_GAINED,
617 0, 0); 617 0, 0);
618 618
619 if (SDL_EventState(SDL_TEXTINPUT, SDL_QUERY)) { 619 if (SDL_EventState(SDL_TEXTINPUT, SDL_QUERY)) {
620 SDL_StartTextInput(); 620 SDL_StartTextInput(window);
621 } 621 }
622 } 622 }
623 } 623 }
624 624
625 int 625 int