Problem using keyboard in SDL Console

Hello,

My apologize if it has been said before but its making me crazy.

When I use my aplication under X, the keyboard is detected and works OK.
But when I run the Aplication under the SDL compiled for console, it
simple doesnt work, and hangs up the keyboard, the unique way to quit
the aplication is rebooting the machine (even killing it thru ssh doesnt
unlock the screen).

Someone knows any tip to make it work? I think it has to be initialized
in different ways.

Thanks

Piero

Hi Piero - I’ve had similar problems (I think). Do you use the infamous #undef
main hack…? I did, and it messed up eventhandling. Once you get rid of the
hack, everything should work fine. Aaah, the number of times I have rebooted on
acount of this… :slight_smile:

No i dont use it, a strange thing is that with another box same as i am
trying (hardware, distribution, libs, everything) and compiled on THIS
box, the aplication runs fine and the keyboard works, but with this box
no way to make it go.

SDL needs any configuration regarding virtual framebuffer to work under
console?
I am thinking its the key, because i cant reproduce the same virtual
framebuffer config on this machine.

Thanks

PieroOn Thu, 2004-06-17 at 07:01, buding at daimi.au.dk wrote:

Hi Piero - I’ve had similar problems (I think). Do you use the infamous #undef
main hack…? I did, and it messed up eventhandling. Once you get rid of the
hack, everything should work fine. Aaah, the number of times I have rebooted on
acount of this… :slight_smile:


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

Piero B. Contezini wrote:

Hello,

My apologize if it has been said before but its making me crazy.

When I use my aplication under X, the keyboard is detected and works OK.
But when I run the Aplication under the SDL compiled for console, it
simple doesnt work, and hangs up the keyboard, the unique way to quit
the aplication is rebooting the machine (even killing it thru ssh doesnt
unlock the screen).

Someone knows any tip to make it work? I think it has to be initialized
in different ways.

What do you mean by “console”, is this frame buffer console (a.k.a fbcon) ?
Do you have a small test program that demonstrates this ? Are you
correctly polling events ?
What distribution are you using ?

Am I asking too many questions ? :wink:

(Problems with keyboard handling in fbcon come up sometimes. Well, “it
works for me” so there might be something else)

Stephane