Esempio n. 1
0
        public DisplayInputControl()
        {
            InitializeComponent();
            Background = null;

            var children = Children.OfType <InputBlock>().ToArray();

            _elmGrid = new InputBlock[3, 3];
            for (int y = 0, i = 0; y < 3; y++)
            {
                for (var x = 0; x < 3; x++)
                {
                    _elmGrid[x, y] = children[i++];
                }
            }

            var seq = BaseChars;

            for (int i = 0, c = 0; i < seq.Length; i += 4, c++)
            {
                children[c].SetChars(seq.Substring(i, 4));
            }

            SetBlock(children[4]);

            SetControlSystem(Input.InputType.XInput);
        }
Esempio n. 2
0
        private void SetBlock(InputBlock elm)
        {
            if (_activeElement != null)
            {
                _activeElement.IsActive = false;
            }

            _activeElement = elm;
            elm.IsActive   = true;
        }
Esempio n. 3
0
 private void IsActiveChanged(InputBlock sender)
 {
 }