Mouse grabbing on Mac OS

Started by Levo, April 21, 2012, 23:00:29

Previous topic - Next topic

Levo

Hi, I'm developping an Applet in which I grab the mouse when I click on the window. It works perfectly on Windows, but when I try it on a Mac, it doesn't work at all. The cursor doesn't disappear until I move the mouse, but then Mouse.getNext() doesn't get any mouse event, I get 0 with getDX and getDY and getX/Y isn't updated. If I keep moving the mouse, the cursor eventually reappear, but I still don't get any mouse event by moving the mouse over the window. If I ungrab the mouse, everything works normally.

I really don't think I'm using it the wrong way and even in a minimalistic applet, it still doesn't work.

Thank you for your attention !