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.
在 Linux 上为游戏捕获 HID 输入的最佳方法是什么?我不需要什么特别的。只有鼠标和键盘。现在我正在使用 Xlib。我有一个单独的输入线程,它与 X 服务器(显示实例)有自己的连接,它处理主渲染窗口的事件。它工作得很好,但它有点有限。例如,我缺少鼠标原始输入。
您是否尝试过在 /dev/input 中打开和读取设备文件?