Exemple #1
0
        public void SetKeyState(Keys key, ButtonState.States state)
        {
            var oldState = _keyboardStates[key];

            _keyboardStates[key] = new ButtonState(state, oldState.State == ButtonState.States.Down);
        }
Exemple #2
0
        public void SetButtonState(MouseButtons button, ButtonState.States state)
        {
            var oldState = _buttonStates[button];

            _buttonStates[button] = new ButtonState(state, oldState.State == ButtonState.States.Down);
        }