Does anyone know of a source of mouse functions for a console application in the visual C++.net developement environment package?
Thanks,
Ross
RossSCann
0
Newbie Poster
Recommended Answers
Jump to Postwin32 api GetConsoleCursorInfo()
Jump to PostI don't know about .NET, but the Win32 functions are all listed here: Console Functions (MSDN).
You will need to enable mouse input with SetConsoleMode.
You can read it using ReadConsoleInput.Use GetStdHandle to get a windows handle for the console input.
Use GetNumberOfConsoleInputEvents to …
Jump to Post[EDIT] Alas, AD, the cursor info is for the little blinking square or underline in the output console display.
Ah yes -- that only sets the size of that blinking cursor. Need to call ReadConsoleInput() to retrieve the mouse events.
All 11 Replies
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
Duoas
1,025
Postaholic
Featured Poster
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
RossSCann
0
Newbie Poster
RossSCann
0
Newbie Poster
Duoas
1,025
Postaholic
Featured Poster
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
Duoas
1,025
Postaholic
Featured Poster
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
Duoas
1,025
Postaholic
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.