Exemple #1
0
        public void KeyUp(AltoKey key)
        {
            AltoKeyBit bits = _keyMap[key];

            _keyWords[bits.Word] &= (ushort)~bits.Bitmask;

            if (ScriptManager.IsRecording)
            {
                ScriptManager.Recorder.KeyUp(key);
            }
        }
        public void KeyDown(AltoKey key)
        {
            //
            // If we had been holding boot keys, release them now that a real user is pressing a key.
            if (_bootKeysPressed)
            {
                Reset();
            }

            AltoKeyBit bits = _keyMap[key];

            _keyWords[bits.Word] |= bits.Bitmask;
        }
        public void KeyUp(AltoKey key)
        {
            AltoKeyBit bits = _keyMap[key];

            _keyWords[bits.Word] &= (ushort)~bits.Bitmask;
        }