Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / I need to capture mouse right and left clicks and the coordinates of where they are made

Author
Message
Ian S
16
Years of Service
User Offline
Joined: 6th Dec 2008
Location:
Posted: 6th Dec 2008 20:28
What's the best way to do this?
Basically, I have two functions. One accepts two ints (x coord and y coord) and should be called on a right click and the other accepts two ints (x coord and y coord) and should be called on left click.
CheatCat
18
Years of Service
User Offline
Joined: 7th Mar 2007
Location: Sweden
Posted: 8th Dec 2008 10:45
And you want to do this with only one function?
Well..

Then, if left click, call GivePos(false); and if right click, call GivePos(true);.

Login to post a reply

Server time is: 2025-06-30 07:34:43
Your offset time is: 2025-06-30 07:34:43