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

+7

Can we use mouse click in c++?

c++

2/18/2018 4:15:25 PM

Aakash Jakhmola

4 Answers

New Answer

+6

+5

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

+3

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: https://docs.microsoft.com/en-us/windows/console/reading-input-buffer-events

+2

In Turbo C++ 3.0, Yes we can..