Question : Problem: do I need a USB keyboard driver?

Hi,

I need to connect both a USB keyboard and a PS/2 KB, and reconfigure it so that my USB KB is my primary, and the secondary produces a data stream, usable by my application, but not to control the desktop.

Do I need a new USB driver so that I can access the PS/2 data stream?

If your answer is yes, what language are these written in.  Can I write it using C#?  Is it possible to download a USB KB driver as a sample?

Thanks.

Answer : Problem: do I need a USB keyboard driver?

The legacy KB systems (AT and PS/2) use a KB buffer that can be polled by a program that can access the hardware. It is a simple FIFO buffer and is used for holding keystrokes that couldn't be handled immediately. The question here is whether a USB KB uses this same buffer or another one... If it uses the same buffer, it could be a bit tricky to discern PS/2 generated keystrokes from USB-generated. Some intimate knowledge about the hardware in question is needed here I'd say.
/RID
Random Solutions  
 
programming4us programming4us