Can we use mouse click in c++? | Sololearn: Learn to code for FREE!


Can we use mouse click in c++?


2/18/2018 4:15:25 PM

Aakash Jakhmola

4 Answers

New Answer



DO NOT USE TURBO C++ You will need to download a library online, but yes.


You can read Mouse Events in Code::Blocks or Visual Studio on a Windows Platform using WinAPI. All you need to do is call ReadConsoleInput() and then respond or execute functions according to the type of mouse input (hover, click, double click, wheel scroll, right click, etc). Read more on this here: