SDL events not being picked up

Hi,

I’m working on a project which uses SDL, and am having weird problems with
event handling. It seems that if more than one event occurs at the same
time (e.g. i release a mouse button while the mouse is in motion), one of
the events is not picked up. In the case given it turns out that the mouse
button event is not picked up.

The code I’ve been using is the standard event code given in the SDL docs:
switch(event.type) {
case SDL_MOUSEBUTTONUP:

break;

        etc.
}

At first, I thought, because SDL does package multiple actions in one
"event" if necessary (if I’m wrong here please correct me!), then I should
use ‘if’ statements, which should pick up all the different event types.
I’ve tried this and it behaves exactly the same.

Thanks in advance to anyone who can help.

Regards

Mark Anderson

I’m working on a project which uses SDL, and am having weird problems with
event handling. It seems that if more than one event occurs at the same
time (e.g. i release a mouse button while the mouse is in motion), one of
the events is not picked up. In the case given it turns out that the mouse
button event is not picked up.

This sounds like a bug either in your code or in the platform specific
SDL input code. What platform are you running on? Could you post the
entirety of your event loop?

See ya,
-Sam Lantinga, Software Engineer, Blizzard Entertainment