Ejemplo n.º 1
0
        private void KeyboardDevice_KeyDown(object sender, OpenTK.Input.KeyboardKeyEventArgs e)
        {
            var key = OpenTKHelpers.KeyToKeys(e.Key);

            KeyDown?.Invoke(this, new KeyEventArgs(KeyboardState.Empty, key, ' '));
        }
Ejemplo n.º 2
0
        private void KeyboardDevice_KeyUp(object sender, KeyboardKeyEventArgs e)
        {
            var key = OpenTKHelpers.KeyToKeys(e.Key);

            keys.Remove(key);
        }