コード例 #1
0
        private void pictureBoxKeyboard_MouseClick(object sender, MouseEventArgs e)
        {
            Single xpos = e.X;
            Single ypos = e.Y;

            xpos = 993 * (xpos / pictureBoxKeyboard.Width);
            ypos = 282 * (ypos / pictureBoxKeyboard.Height);

            if (pvtKeyboardType == BoW.Kids)
            {
                pvtKeyboardKeyPressed = HandleKidsMouseClick(xpos, ypos);
            }
            else
            {
                pvtKeyboardKeyPressed = HandleTheMouseClick(xpos, ypos);
            }

            KeyboardEventArgs dea = new KeyboardEventArgs(pvtKeyboardKeyPressed);

            OnUserKeyPressed(dea);
        }
コード例 #2
0
 private void keyboardcontrol_UserKeyPressed(object sender, KeyboardEventArgs e)
 {
     SendKeys.Send(e.KeyboardKeyPressed);
 }
コード例 #3
0
ファイル: Keyboard.cs プロジェクト: RobertFurer/Picasso23
 protected virtual void OnUserKeyPressed(KeyboardEventArgs e)
 {
     if (UserKeyPressed != null)
         UserKeyPressed(this, e);
 }
コード例 #4
0
ファイル: Keyboard.cs プロジェクト: RobertFurer/Picasso23
        private void pictureBoxKeyboard_MouseClick(object sender, MouseEventArgs e)
        {
            Single xpos = e.X;
            Single ypos = e.Y;

            xpos = 993 * (xpos / pictureBoxKeyboard.Width);
            ypos = 282 * (ypos / pictureBoxKeyboard.Height);

            if (pvtKeyboardType == BoW.Kids) pvtKeyboardKeyPressed = HandleKidsMouseClick(xpos, ypos);
            else pvtKeyboardKeyPressed = HandleTheMouseClick(xpos, ypos);

            KeyboardEventArgs dea = new KeyboardEventArgs(pvtKeyboardKeyPressed);

            OnUserKeyPressed(dea);
        }