How to implement double - click event in C++?如何在C++里面实现双击事件?

I need to double click the mouse in C++, anyone know how to solve?
我需要在C++里面实现鼠标的双击,有没有人知道怎么解决?
For example, double click the left mouse button and the character moves to the target point.
比如双击鼠标左键,角色移动到目标点。