There are lots of tutorials on the Web
If you search the web for "mouse input console" you should find several sites that have examples. Basically what you have is a function ReadConsoleInput. This function accepts a data structure called INPUT_RECORD which contains another data structure MOUSE_EVENT which tells you the state of you mouse. Right button clicked or x and y position. You create a handler routine to fetch the records one at atime just like in a normal windows application inspect each record if it is a mouse event then give it to a mouse handler if it is a keyboard event then you give it to the keyboard handler. I have a program I created in visual C++ that i was using to play aorund with the console maybe it can give you some ideas.