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.

DLL Talk / BlueGUI mousex and mousey freeze

Author
Message
Ric
20
Years of Service
User Offline
Joined: 11th Jul 2004
Location: object position x
Posted: 26th Oct 2006 20:51
I need to return the value of the mouse in relation to the directx screen - however, the mousex and mousey values seem to freeze as soon as the cursor moves over a gadget. I know that mouseposx and mouseposy will return coordinates while the cursor is over a gadget, but they give windows values, not directx values (ie. they are different).

Unless I figure it out myself first, does anyone know off hand a solution to this?

Thanks!

Ric
20
Years of Service
User Offline
Joined: 11th Jul 2004
Location: object position x
Posted: 26th Oct 2006 21:14
Not to worry - problem solved.

Anyone who encounters the same problem, this is how to convert mouseposx (the mouse coordinates relative to the desktop) into mousex (the mouse coordinates relative to the directx screen):



BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 30th Oct 2006 13:10 Edited at: 30th Oct 2006 13:10
I needed this solution about...ooh, must be 2 or 3 years ago now! I had these issues with Smart Particles.

Thanks for sharing, I may need it again shortly.



Olby
21
Years of Service
User Offline
Joined: 21st Aug 2003
Location:
Posted: 31st Oct 2006 22:07
@BatVink - You mean you are going to update SmartParticles, please say yess!

AMD Sempron 3.1+ Ghz, 512MB Ram, ATI R9550 256MB Ram, Sound Blaster Live!, WinXP SP2, DirectX 9.0c, DBP 6.2
http://www.myspace.com/producerolby

Login to post a reply

Server time is: 2024-11-22 11:20:52
Your offset time is: 2024-11-22 11:20:52