| | |
| | | /* |
| | | Simple DirectMedia Layer |
| | | Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org> |
| | | Copyright (C) 1997-2018 Sam Lantinga <slouken@libsdl.org> |
| | | |
| | | This software is provided 'as-is', without any express or implied |
| | | warranty. In no event will the authors be held liable for any damages |
| | |
| | | { |
| | | InitIME(); |
| | | |
| | | if (SDL_IME_Init_Real) |
| | | return SDL_IME_Init_Real(); |
| | | if (SDL_IME_Init_Real) { |
| | | if (SDL_IME_Init_Real()) { |
| | | return SDL_TRUE; |
| | | } |
| | | |
| | | /* uhoh, the IME implementation's init failed! Disable IME support. */ |
| | | SDL_IME_Init_Real = NULL; |
| | | SDL_IME_Quit_Real = NULL; |
| | | SDL_IME_SetFocus_Real = NULL; |
| | | SDL_IME_Reset_Real = NULL; |
| | | SDL_IME_ProcessKeyEvent_Real = NULL; |
| | | SDL_IME_UpdateTextRect_Real = NULL; |
| | | SDL_IME_PumpEvents_Real = NULL; |
| | | } |
| | | |
| | | return SDL_FALSE; |
| | | } |
| | |
| | | if (SDL_IME_PumpEvents_Real) |
| | | SDL_IME_PumpEvents_Real(); |
| | | } |
| | | |
| | | /* vi: set ts=4 sw=4 expandtab: */ |