Ejemplo n.º 1
0
        protected virtual void InputClick(int mouseX, int mouseY)
        {
            InputWidget input = (InputWidget)selectedWidget;

            using (drawer) {
                drawer.SetBitmap(game.Framebuffer);
                if (curInput != null)
                {
                    curInput.Active = false;
                    curInput.Redraw(drawer);
                }

                input.Active = true;
                elapsed      = 0; lastCaretShow = false;
                input.SetCaretToCursor(mouseX, mouseY, drawer);
                input.Redraw(drawer);
            }
            curInput   = input;
            game.Dirty = true;
        }