is there a way to use mouse as an event handler in c/c++ im making a game on snakes and ladder (the famous board game) and trying to make it with basic borland c++ compiler working with a header file called graphics.h, which is very basic and gives output of 640 X 480 res, so I was wondering if there is a possiblity of using mouse as an event handler (about which i have no experiance)to have control over the palyer coins on the board.
Share
I’m not sure which version of graphics.h you happen to have, but there are functions
getmousey,getmousey,clearmouseclickandgetmouseclick. See this for some documentation that may work for you.It appeas that you can use
registermousehandlerand a call-back function to do some level of event-based programming. Here’s a sample from the document I sent you.