コード例 #1
0
        void WinGLCanvas_KeyPress(object sender, KeyPressEventArgs e)
        {
            GLEventHandler <GLKeyPressEventArgs> KeyPress = this.glKeyPress;

            if (KeyPress != null)
            {
                GLKeyPressEventArgs arg = e.Translate();
                KeyPress(sender, arg);
            }
        }