0

I am new to c++.I am wandering how to use mouse in c++ output screen???

Plzz ,i need an urgent help

16th Jan 2018, 4:07 AM
Yash Chauhan
11 Answers
+ 1
Yes, there is most definitely a library in C++ that can accomplish this. You can access it using the format: #include <libName> I suggest finishing the course on C++ on SoloLearn first of all, since a physical input library most definitely includes objects. The tutorial on SL covers those at the end of the course! I just don't want you to bite the bullet too much! 👍
16th Jan 2018, 4:19 AM
Dread
Dread - avatar
+ 4
You may learn using ReadConsoleInput() & other functions in windows.h for controlling Virtual Keys and Mouse Events. https://docs.microsoft.com/en-us/windows/console/reading-input-buffer-events
16th Jan 2018, 4:47 AM
Solo Wanderer 4315
Solo Wanderer 4315 - avatar
+ 2
Like, using the click of the mouse as an input? So, like if you want someone to click with it, and then be able to detect it?
16th Jan 2018, 4:16 AM
Dread
Dread - avatar
+ 2
You can research the libraries available in the C++ language, but yes, I believe there is a library for this. I highly suggest not jumping too far ahead though. 👍
16th Jan 2018, 4:22 AM
Dread
Dread - avatar
+ 2
Welcome!
16th Jan 2018, 4:25 AM
Dread
Dread - avatar
+ 1
Hello! Can you expand on this? I do not exactly understand what you mean by: "how to use mouse is c++ output screen???" Do you mean how to implement GUI's?
16th Jan 2018, 4:14 AM
Dread
Dread - avatar
0
no . i mean i want to use mouse as input in program's output
16th Jan 2018, 4:15 AM
Yash Chauhan
0
is there any inbuilt function for that??
16th Jan 2018, 4:17 AM
Yash Chauhan
0
is there any inbuilt function for accessing output using four "arrow keys" of keyboard.too??
16th Jan 2018, 4:21 AM
Yash Chauhan
0
ok ,i got it.thanx for help👍✌
16th Jan 2018, 4:23 AM
Yash Chauhan