Hey this might be a bug I don't know.
I have drawn my own mouse cursor in the game and have set the coordinates to equal the position of the mouse upon each update loop.
| MouseState m_Mouse = Mouse.GetState(); |
| m_MouseX = m_Mouse.X; |
| m_MouseY = m_Mouse.Y; |
I then draw it at the end of the draw loop.
| mSpriteBatch.Draw(m_MouseCursor, new Rectangle(m_Mouse.X, m_Mouse.Y, 20, 30), Color.White); |
| |
The problem is when I played the game in windowed mode the cursor doesn't match exactly to the current position of my mouse. This has led to being able to click on items outside of the game even though the cursor suggests it's still in the game.
When I play the game in full screen mode sometimes I can't pull the mouse cursor to the bottom of the screen, there seems to be a border which stops me.
Is this a resolution issue? Or have I done the mouse code wrong?