@backtotheabyss wrote:
Hi guys
I am having an issue with trying to get the Mouse.GetState(). It's always returning 0,0I tried just the usual way of getting the Mouse.GetState() through MouseState mousestate = Mouse.GetState(); at the Update()
Then assigning mousestate.X and mousestate.Y to a Vector2 that's declared outside as static. I am always getting 0,0 when trying to debug. I even just tried to dump mousestate.X and mousestate.Y at the Draw() at Window.title and still is 0,0.
I am running the game in a border-less Windows. Now, what I found is that at the beginning of the game (Initialize), both Mouse.WindowHandle and Window.Handle are the same value.
BUT in Update(), Mouse.WindowHandle = Window.Handle are different.
As far as I know, Mouse.WindowHandle {set} is not implemented in MonogameAny remote idea what this is ? I've tried with monogame 3.7.1 and happens the same.
The mouse is just a regular USB mouse, I tried on a laptop and happens the same with the Touchpad.
Thanks.
Diego
Posts: 3
Participants: 2