How could keyboard event go to SDL_EventQ

thanks. I think that is the problem.

But I am confused that when I run a game program in desktop linux everything seems normal, but when I port this program to embeded linux on a board , the keyboard event can be get by the SDL_Win (I have printed this keyevent message ) but can’t be gained a second time by my game program( it can get the first-time keystroke event ). so, the program can run normally on desktop linux but fail on embedded linux.

What on earth the problem is?> On Thu, 2004-05-27 at 06:10, higsn wrote:

Hi, all:

How could keyboard or some other event generated by the hardware device go to SDL_EventQ and thus these events can be received by SDL_PeepEvent functions?

I have look through SDL source code, but can’t find the code!

Take a look at SDL_PumpEvents(). Work out from there.

The outline of an answer is that the operating system handles the
hardware event and passes it off to the windowing system. SDL talk to
the windowing system to get the event and converts it to its own format
and puts it in the SDL event queue. All told the event may sit in
several different queues in several different formats before it gets put
in the SDL event queue.

  Bob Pendleton

thanks!

AOC???----2004 AOC ???http://design.163.com/aocmonitor/index.html

??? ??? VIP??? ??? http://vip.163.com

??? 25???4??? http://mail.163.com

??? ??? http://popo.163.com



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

±-------------------------------------+


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

========================================================
AOC???-2004???AOC???http://design.163.com/aocmonitor/index.html

??? ??? VIP??? ??? http://vip.163.com

??? 25???4??? http://mail.163.com

??? ??? http://popo.163.com