| Summary: | Mouse enter/leave events broken on Mac | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Vern Jensen <vern> |
| Component: | events | Assignee: | Sam Lantinga <slouken> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | ||
| Version: | HG 2.0 | ||
| Hardware: | Other | ||
| OS: | Mac OS X 10.6 | ||
I believe this is fixed in the latest snapshot, can you retest? http://www.libsdl.org/tmp/SDL-1.3.zip Thanks! Yup, works perfectly now. Thanks! Great! :) |
The SDL_WINDOWEVENT_ENTER and SDL_WINDOWEVENT_LEAVE are each called *every single time the mouse is moved* on MacOS X 10.6. With the event handler below, I get a stream of printf() statements in the console log for moving the mouse, regardless of whether the cursor enters/leaves the window or not. void MyHandleSDLEvent(SDL_Event * event, int *done) { switch (event->type) { case SDL_WINDOWEVENT: switch (event->window.event) { case SDL_WINDOWEVENT_CLOSE: *done = 1; break; case SDL_WINDOWEVENT_ENTER: printf("Mouse entered our window! windowID = %d \n", event->window.windowID); break; case SDL_WINDOWEVENT_LEAVE: printf("Mouuse left the window! windowID = %d \n", event->window.windowID); break; } break;