OnKeyUp() protected method

protected OnKeyUp ( Key key, int scanCode, KeyModifiers mods ) : void
key Key
scanCode int
mods KeyModifiers
return void
Ejemplo n.º 1
0
        internal static void InvokeKey(GlFwForm f, Key key, int scanCode, KeyActionKind keyAction, KeyModifiers mods)
        {
            switch (keyAction)
            {
            default: throw new NotFiniteNumberException();

            case KeyActionKind.Press:
                f.OnKeyDown(key, scanCode, mods);
                break;

            case KeyActionKind.Repeat:
                f.OnKeyRepeat(key, scanCode, mods);
                break;

            case KeyActionKind.Release:
                f.OnKeyUp(key, scanCode, mods);
                break;
            }
        }