예제 #1
0
파일: Osk.xaml.cs 프로젝트: Mou-Ikkai/PadOS
        public Osk()
        {
            InitializeComponent();
            _gamePadWrapper = new GamePadWrapper(this);
            TextBox.Text    = "";
            System.Windows.Controls.Canvas.SetLeft(Caret, 0);

            if (System.ComponentModel.DesignerProperties.GetIsInDesignMode(this))
            {
                return;
            }
            Loaded += OnLoaded;
        }
예제 #2
0
        public Osk(bool simulate)
        {
            InitializeComponent();
            _gamePadWrapper = new GamePadWrapper(this);
            TextBox.Text    = "";
            System.Windows.Controls.Canvas.SetLeft(Caret, 0);

            if (System.ComponentModel.DesignerProperties.GetIsInDesignMode(this))
            {
                return;
            }
            Loaded += OnLoaded;

            _startSize = new Input.Vector2(
                Width,
                Height
                );

            _keyboardInputSimulator.SimulatorKeyboard = simulate;
        }