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 function to return mouse X and Y (2d)?

Author
Message
Crimson X
16
Years of Service
User Offline
Joined: 28th Nov 2007
Location: New Hampshire
Posted: 30th Nov 2007 22:09
Hi, I was wondering if there was a simple function to return the current X and Y position of the mouse? I went through the documentation and I couldn't find anything.

I need it to check if the mouse is over a certain sprite, i understand how to do this, but I cant do it without the mouse coordinates...

Thanks
Zotoaster
19
Years of Service
User Offline
Joined: 20th Dec 2004
Location: Scotland
Posted: 30th Nov 2007 22:18
dbMouseX() and dbMouseY()

"It's like floating a boat on a liquid that I don't know, but I'm quite happy to drink it if I'm thirsty enough" - Me being a good programmer but sucking at computers
Crimson X
16
Years of Service
User Offline
Joined: 28th Nov 2007
Location: New Hampshire
Posted: 30th Nov 2007 22:25
Ahhh Thank you very much!
Works perfectly.

Login to post a reply

Server time is: 2024-09-29 05:25:31
Your offset time is: 2024-09-29 05:25:31