SDL is putting artificial events in event queue?

Hi!

I tried out simple example app with one while (true) while (SDL_PoolEvent)
loop where I check for SDL_QUIT and SDL_ESCAPE event.keys and I got
artificial SDL_QUIT events. when I removed check for it, I got SDL_ESCAPE
events too. but all I did was just few simple mouse movements.

I working in SDL 1.2.5, in full screen mode.

can somebody help me to get rid of these artifacts? or how I can check for
user inputs without while(true) loops?

marex

“marex” writes:
| or how I can check for user inputs without while(true) loops?
You mean without while(SDL_PollEvent()) ?
You could use SDL_PumpEvent to keep events coming and then inspect
mouse and keyboard with SDL_GetMouseState and SDL_GetKeyState. You
might want to read “Programming Linux Games” book which is online
(google for it - I don’t remember the URL). Chapter 4 is devoted to SDL -
checkout “Input and Event Processing”.

– Ed