Hi I need a function for use mouse in c++.
Check out this cool DOS tutorial http://www.adrianxw.dk/index.html
I believe you might specifically be interested in part 5 which talks about keyboard and mouse events.