Mouse support in console mode
I totally completed my menu code. My menu is now a complete emulation of a windows menu. But my menu only supports the keyboard input and now I want to write a code for the mouse support too, but I don't have a clue how to write it.
For keyboard support I was writting in this style:
I just want an example for the mouse. Thanks!
hInput = GetStdHandle (STD_INPUT_HANDLE);
if ( ReadConsoleInput(hInput, &ir, 1, &dwRead) && (ir.EventType == KEY_EVENT) && (ir.Event.KeyEvent.bKeyDown) )
Loop = FALSE;
BTW: I'm writting a win32 console application and I'm using VC++ 6.0 compiler on Win98.