Engines/FlatRedBallXNA/FlatRedBall/Input/Windows/WindowsInputEventManager.cs
/// <summary>
/// Initialize the TextInput with the given GameWindow.
/// </summary>
/// <param name="window">The XNA window to which text input should be linked.</param>
Initialize the TextInput with the given GameWindow.
Initialize the TextInput with the given GameWindow .
public void Initialize(GameWindow window)
        {
            if (isInitialized == false)
            {
                hookProcDelegate = new WndProc(HookProc);
                prevWndProc = (IntPtr)SetWindowLong(window.Handle, GWL_WNDPROC, (int)Marshal.GetFunctionPointerForDelegate(hookProcDelegate));
                hIMC = ImmGetContext(window.Handle);
                isInitialized = true;
            }
        }
public void Initialize ( GameWindow window ) { if ( isInitialized == false ) { hookProcDelegate = new WndProc ( HookProc ) ; prevWndProc = ( IntPtr ) SetWindowLong ( window . Handle , GWL_WNDPROC , ( int ) Marshal . GetFunctionPointerForDelegate ( hookProcDelegate ) ) ; hIMC = ImmGetContext ( window . Handle ) ; isInitialized = true ; } }
Initialize the TextInput with the given GameWindow.
Initialize the TextInput with the given GameWindow .
window
GameWindow
The XNA window to which text input should be linked.
The XNA window to which text input should be linked .