コード例 #1
0
        /// <summary> Handle the KeyRelease event. </summary>
        /// <param name="e"> The event data. <see cref="XrwKeyEvent"/> </param>
        /// <remarks> Set XrwKeyEvent. Set result to nonzero to stop further event processing. </remarks>
        public virtual void OnKeyRelease(XrwKeyEvent e)
        {
            KeyReleaseDelegate keyRelease = KeyRelease;

            if (keyRelease != null)
            {
                keyRelease(this, e);
            }
        }
コード例 #2
0
        /// <summary> Handle the KeyPress event. </summary>
        /// <param name="e"> The event data. <see cref="XrwKeyEvent"/> </param>
        /// <remarks> Set XrwKeyEvent. Set result to nonzero to stop further event processing. </remarks>
        public virtual void OnKeyPress(XrwKeyEvent e)
        {
            KeyPressDelegate keyPress = KeyPress;

            if (keyPress != null)
            {
                keyPress(this, e);
            }
        }