I need to to simply know the mouse's position, where 0,0 is at the bottom left corner of the whole monitor, and not the bottom left corner of the game window.
I could calculate the position of the mouse by checking the Input.MousePosition, plus some calculations that factor in the screen resolution and the game window's x/y position on the screen...
However that is particularly tricky in my case, because I'm also moving my whole game window based on the cursor's movement. This creates a whip-lash effect since the game window is moving based on the cursor's position, while simultaniously I'm trying to calculate the cursor's position based on the game window's position! You see the problem.
I've actually managed to fix the whip lash by predicting the whiplash and compensating for it, but I'd still like to know why the bloody heck it isn't possible to simply get the mouse's X and Y position on the whole monitor? Or is it possible though a windows DLL call or something?
↧