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 / Simple question

Author
Message
Greg_C
14
Years of Service
User Offline
Joined: 22nd May 2010
Location:
Posted: 23rd May 2010 06:16
I know how to get the mouse position when I click somewhere but how would I get that number without it changing every time. For example I have this code here:



now say I want to use MouseX and Y but don't want it to change every time I click. How would I do that?
Bjorn
14
Years of Service
User Offline
Joined: 20th Mar 2010
Location:
Posted: 23rd May 2010 13:32 Edited at: 23rd May 2010 13:33
That's easy,
just do:

and if you want it to work again you put
somewhere
Greg_C
14
Years of Service
User Offline
Joined: 22nd May 2010
Location:
Posted: 25th May 2010 01:24
What I mean is if you click once you store that position into the MouseX and Y then if I click again MouseX and Y don't change values. How would I be able to keep clicking and keep the value of my first click?

Login to post a reply

Server time is: 2024-11-19 23:24:28
Your offset time is: 2024-11-19 23:24:28