问题
Is there a way to read from a USB barcode reader in one interface & at the same time use the keyboard & mouse to write data in a diffrent interface application? My application is running as web application. Also can it work under unix?
回答1:
Under Linux it's easy; configure Xorg such that the reader is not a core input device, then use the event subsystem to read the input events directly from the reader.
来源:https://stackoverflow.com/questions/4764274/need-barcode-keyboard-to-work-separately