Mercurial > sdl-ios-xcode
diff EXCLUDE/GLIMM/src/Window.cpp @ 4742:59b0750575b1
Added Get_IMM method to Window.
Added focus gain/loss events for IMM.
author | dewyatt |
---|---|
date | Sun, 04 Jul 2010 06:07:38 -0400 |
parents | bb189d44af16 |
children | 0aaa54fbd2bc |
line wrap: on
line diff
--- a/EXCLUDE/GLIMM/src/Window.cpp Wed Jun 30 17:29:20 2010 -0400 +++ b/EXCLUDE/GLIMM/src/Window.cpp Sun Jul 04 06:07:38 2010 -0400 @@ -89,6 +89,11 @@ return my_Handle; } +IMM & Window::Get_IMM() +{ + return my_IMM; +} + void Window::Register_Class() { WNDCLASSEXW Window_Class = {0}; @@ -285,6 +290,12 @@ case WM_CHAR: Call_Listener(On_Char(wParam)); break; + case WM_SETFOCUS: + my_IMM.Focus_Gained(); + break; + case WM_KILLFOCUS: + my_IMM.Focus_Lost(); + break; default: return DefWindowProcW(Handle, Message, wParam, lParam); break;