Hello. For an embedded system I need FreeBSD to accept input from two keyboards at the same time. As syscons cannot do that and it is obviously not trivial to change that, I wrote the enclosed program.
After switching syscons to the first keyboard available, it calls select for the other keyboard(s). If there is any input available the active keyboard for syscons is changed. This works, more or less. (I am using FreeBSD 4.10) The problem is that after switching, the first key pressed on the new keyboard is lost. Does anyone have an idea about that? Am I doing something wrong? Any other - possibly better - idea to have more than one keyboard at the same time? You may notice, that I flush the old keyboard after detaching and before re-attaching the new one. I do that because I saw an endless switching (kbd1->kbd0->kbd1->kbd0->...) when not doing that. I do not understand, why select should return anything from a keyboard where I do not press any key. May be, I am missing something. Any help appreciated. Thanks, Norbert P.S.: If there is any interest, I could make a port out of that program.
kbautosw.c
Description: Binary data
_______________________________________________ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"