I have the following problem in XNA:
When I set the mouse position to (0,0) it moves the cursor outside the game window.
When I get the mouse coordinates and move the cursor to the left corner (0,0) it shows me coordinates (170,0)
What can be the problem?
Mouse position issue in XNA 4.0
Page 1 of 12 Replies - 676 Views - Last Post: 10 October 2012 - 09:34 AM
Replies To: Mouse position issue in XNA 4.0
#2
Re: Mouse position issue in XNA 4.0
Posted 10 October 2012 - 09:29 AM
Are you sure you're not setting it to (0,0) of your whole monitor and not just your window? If so you can use the window position to offset the values.
#3
Re: Mouse position issue in XNA 4.0
Posted 10 October 2012 - 09:34 AM
I use Mouse.SetPosition(0,0);
It sets the position relative to the window. Also it doesn't place it in the top left corner of the screen, just somewhere outside the window
It sets the position relative to the window. Also it doesn't place it in the top left corner of the screen, just somewhere outside the window
Page 1 of 1
|
|

New Topic/Question
Reply



MultiQuote




|