Faster MouseClick Response?

I am creating a simple ball and paddle program in C # and using the mouse to move the paddle. To register mouse clicks, I have this

    private void Form1_MouseClick(object sender, MouseEventArgs e)
    {
        if (e.Button == MouseButtons.Right)
        {
            paddle.movePaddleRight();
            this.Invalidate();
        }
        if (e.Button == MouseButtons.Left)
        {
            paddle.movePaddleLeft(); 
            this.Invalidate();
        }
    }

The problem is that it does not register a quick sequence of clicks. After one click, it takes about half a second to register the next click (all clicks between them are lost). Is there any way for me to make the paddle move according to each click and record every click?

+5
source share
1 answer

A quick click fires the MouseDoubleClick event. Use the MouseDown event instead.

+6
source

All Articles