I would like to create an external pushbutton to use with one of my applications. My question does not focus on the hardware itself (that's why I'm asking it here), but on the software/communication side. What would be the best and most straightforward way to do? A good speed is important, so it should not differ too much from the latency of a normal keyboard.
The following solutions come to my mind:
- let the hardware be a modified keyboard, or at least it should be recognized by the system as a keyboard. Pro: no extra work from software-side required. Con: what if I need to use a normal keyboard as well? Ok, not so bad, with today's USB keyboards...
- Communicate through serial port. This would be the most straightforward approach, or better yet, it would have been like 10 years ago. Now most computers don't even have one, of course, there are plenty of serial-usb converters around.
- Let it be a standard USB device. I don't like the idea, with installing drivers, and having to care about different OS, etc.
Does anything better come to your minds?