LWJGL Forum

Programming => Lightweight Java Gaming Library => Topic started by: r_bewick on February 24, 2014, 11:07:32

Title: Mouse Grab on MAC
Post by: r_bewick on February 24, 2014, 11:07:32
Hey, on MAC when I grab the mouse, the mouse can no longer move, nor any buttons work. Mouse.getDX() / Mouse.getDY() return 0.

Can anyone help me out? Works fine both on Windows and Linux.

Thanks,
r_bewick
Title: Re: Mouse Grab on MAC
Post by: mireazma on April 05, 2014, 23:47:06
I had a similar problem, not sure it's the same as yours but anyway, it was solved by storing DX / DY values into vars at the start of the frame and used that vars where I needed. Better check whether in your Mac version you call getDX() more than once per frame. After it's called it resets DX / DY to 0 to prepare it for the next frame.