Hello.
I've got a problem with Mouse.GetState()
It works without problems in a pure XNA project, but in a Silverlight/XNA project it does not work.
If I try to get the state of Left button it always returns Released. Tried the exact same code in both projects and it only works in the XNA project.
Here's the code:
I've checked the references in both projects and there are the same XNA references in both.
Is there anyone else that has experienced this, and that has found a solution?
Regards
Izaac
I've got a problem with Mouse.GetState()
It works without problems in a pure XNA project, but in a Silverlight/XNA project it does not work.
If I try to get the state of Left button it always returns Released. Tried the exact same code in both projects and it only works in the XNA project.
Here's the code:
Code:
ms = Mouse.GetState()
msg = "Left: " + ms.LeftButton.ToString + vbCrLf + _
"Middle: " + ms.MiddleButton.ToString + vbCrLf + _
"Right: " + ms.RightButton.ToString
spriteBatch.DrawString(fntScore, msg, New Vector2(5, 5), Color.White)
Is there anyone else that has experienced this, and that has found a solution?
Regards
Izaac