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.
我正在开发一个开源项目来添加我需要的东西。它使用 XInput 系统从键盘获取输入,我无法更改它。但是,对于按键,我需要获取硬件扫描码,就像这里列出的那样。有没有办法从XKeyPressedEvent到这些KEY_*扫描代码input-event-codes.h,以了解以独立于布局的方式按下了什么键?
XKeyPressedEvent
KEY_*
input-event-codes.h