Exemplo n.º 1
0
        public WinFormsInputSourceConfiguration(Control control)
        {
            UwpGamepadInputSource gamepadSource = new UwpGamepadInputSource();

            Sources.Add(gamepadSource);

            WinFormsKeyboard keyboard = new WinFormsKeyboard(control);

            Sources.Add(keyboard);
        }
        public XamlInputSourceConfiguration(UIElement uiElement)
        {
            UwpGamepadInputSource gamepadSource = new UwpGamepadInputSource();

            Sources.Add(gamepadSource);

            XamlKeyboardInputSource keyboardSource = new XamlKeyboardInputSource(uiElement);

            Sources.Add(keyboardSource);

            XamlPointerInputSource pointerSource = new XamlPointerInputSource(uiElement);

            Sources.Add(pointerSource);
        }
Exemplo n.º 3
0
        public CoreWindowInputSourceConfiguration(CoreWindow coreWindow)
        {
            UwpGamepadInputSource gamepadSource = new UwpGamepadInputSource();

            Sources.Add(gamepadSource);

            CoreWindowKeyboardInputSource keyboardSource = new CoreWindowKeyboardInputSource(coreWindow);

            Sources.Add(keyboardSource);

            CoreWindowPointerInputSource pointerSource = new CoreWindowPointerInputSource(coreWindow);

            Sources.Add(pointerSource);
        }