PDA

View Full Version : The mouse....



bjrtap
18-11-2003, 10:48 PM
Hello,

how can I check the mouseposition using the DirectInput-Object form UnDelphiX?
I set The Mouse to enabled and used the code:



DXInput.Mouse.Update;
if DXInput.Mouse.x = ...


Problem is that I only get the absolut number of the x-koord. But I need the position on screen. Any ideas?

Clootie
19-11-2003, 07:38 PM
ClientToScreen(), ScreenToClient() ?