这是WiringPi作者的回复
You want something like this: https://www.google.co.uk/search? ... gL&ved=0CD8QsAQ
ie. a USB device.
I can tell you how to wire up buttons to the GPIO pins, but I do not know
how to plumb that into the standard keyboard input system. I think you
may need to write a Linux kernel module to do that.
Gordon
--