Mouse Grab on MAC

Started by r_bewick, February 24, 2014, 11:07:32

Previous topic - Next topic

r_bewick

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

mireazma

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.