Mercurial > sdl-ios-xcode
diff src/events/SDL_keyboard.c @ 1959:25d6537feea4
Implemented Cocoa key event handling.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sun, 30 Jul 2006 05:18:33 +0000 |
parents | c121d94672cb |
children | 047245361002 |
line wrap: on
line diff
--- a/src/events/SDL_keyboard.c Sat Jul 29 23:00:15 2006 +0000 +++ b/src/events/SDL_keyboard.c Sun Jul 30 05:18:33 2006 +0000 @@ -654,6 +654,7 @@ event.key.keysym.mod = modstate; event.key.keysym.unicode = 0; event.key.windowID = keyboard->focus; + /* FIXME: This doesn't make sense anymore... */ /* * jk 991215 - Added */ @@ -688,7 +689,7 @@ event.text.type = SDL_TEXTINPUT; event.text.which = (Uint8) index; SDL_strlcpy(event.text.text, text, SDL_arraysize(event.text.text)); - event.key.windowID = keyboard->focus; + event.text.windowID = keyboard->focus; posted = (SDL_PushEvent(&event) > 0); } return (posted);