Problem with SDL_PushEvent

Hello all:

I compiled libsdl 1.2.7-r2 with fbcon support, and have been writing a few lines of code to test it out. I initialized my screen, accepting a SDL_MOUSEBUTTONDOWN event and pushing a SDL_QUIT event after that. The first time everything runs fine, but starting the 2nd time, SDL_MOUSEMOTION event will be “mapped” to SDL_MOUSEBUTTONDOWN so when I slightly moved my mice, the program will get an SDL_MOUSEBUTTONDOWN -> SDL_QUIT. Has someone seen this problem, or what I might have down wrong?

Thanks!

Ryan

Hello !

Upload your test code somewhere and
post the link here. This will help to
find the problem.

CU> Hello all:

I compiled libsdl 1.2.7-r2 with fbcon support, and have been writing a few
lines of code to test it out. I initialized my screen, accepting a
SDL_MOUSEBUTTONDOWN event and pushing a SDL_QUIT event after that. The
first time everything runs fine, but starting the 2nd time,
SDL_MOUSEMOTION event will be “mapped” to SDL_MOUSEBUTTONDOWN so when I
slightly moved my mice, the program will get an SDL_MOUSEBUTTONDOWN ->
SDL_QUIT. Has someone seen this problem, or what I might have down wrong?

Thanks!

Ryan_______________________________________________
SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

Hello -

Thanks Torsten for your advice. I’ve been working on this for a few days and the problem is still there. I pasted my code snippet here (http://www.linuxquestions.org/questions/showthread.php?s=&threadid=252304). Could someone have a look and give me some idea?

Thanks!

Yuan

why not use SDL_MOUSEBUTTONUP instead…like any normal gui would…

-LIM-

Thanks Jonathan, it’s solved.