Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在制作一个在销售点的后台运行的应用程序,以读取来自 USB 扫描仪的输入。如何从 C# 获取扫描仪的输入?我可以区分扫描仪和 USB 键盘吗?(扫描仪是 HID 设备)
在 CodeProject 上使用“原始输入”实现之前,我成功地做到了这一点:
它允许您接收输入(如果它模仿“键盘”,则按下了哪些“键”)以及区分它来自哪个设备。