Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 164
  • Last Modified:

do I need a USB keyboard driver?


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?

1 Solution
i think you can only use one keyboard at the time, but correct me if i'm wrong on this one...
ba272Author Commented:
Actually, I just installed a USB and it works fine, in parallel with the PS/2 KB.  They both have complete control of Windows and any program I open at the same time.  It's like Windows does not know the difference.  But I want to limit the access of the PS/2 KB and NOT give it the ability to control the desktop, etc.  I simply want the PS/2 to appear as a harmless data stream which my application will access, nothing more.

Any ideas?
no ideas, sorry...
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

You can't do that with 2 keyboards on the single PC. For your task you need 2 PC's and second will have restricted terminal access to the first one!
ba272Author Commented:
The seconds PC is an option.  But someone suggested looking into the ioctl() function to modify the device driver, rather than writing a new USB keyboard driver, which is an option. I gotta beleive this is possible through software.  

A data stream is a data stream, and I can't believe the designer of Windows and/or the PC were so short sighted as to think that they were the only ones who needed to have access to the keyboard input stream.

Any ideas of where I could post this on EE to elicit answer from low-level software developers?  I'm not going to revert to my final option (a second PC) before I exhaust every possibility.

try the posting it in the  programming section, or ask a mod to move it.
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.

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now