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.
我需要从 HID 操纵杆接收击键事件。我使用 hidapi 中的 hid_open() 打开了设备,但是当我按下一个键时我无法获取事件。你能给我任何想法吗?
请问您是否想使用hdi_read()阅读键盘消息?如果是这样,恐怕这个操作将无法正常工作。因为您无法从 Windows 上的键盘和鼠标读取或写入报告。操作系统不允许。您可以参考此链接了解更多信息。
hdi_read()