Hello there
we are developing a game with sdl, and on our system the mouse when
captured is not released after a segfault, meaning, i can see the
cursor, but no movement can be done.
also clicking does not work.
the code to capture the mouse is here:
void EventHandler::grabEvents(bool grabEvents)
{
this->eventsGrabbed = grabEvents;
if(!grabEvents)
{
SDL_ShowCursor(SDL_ENABLE);
SDL_WM_GrabInput(SDL_GRAB_OFF);
}
else
{
SDL_WM_GrabInput(SDL_GRAB_ON);
SDL_ShowCursor(SDL_DISABLE);
}
}
is there a way to resolve this issue (restarting the app and exiting did
not work).
thanks for any comments on this
benjamin