close
列出所有裝置
chris@retina:~$ xinput list ⎡ Virtual core pointer id=2 [master pointer (3)] ⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)] ⎜ ↳ bcm5974 id=13 [slave pointer (2)] ⎜ ↳ Logitech Unifying Device. Wireless PID:1028 id=9 [slave pointer (2)] ⎣ Virtual core keyboard id=3 [master keyboard (2)] ↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)] ↳ Power Button id=6 [slave keyboard (3)] ↳ Power Button id=7 [slave keyboard (3)] ↳ Sleep Button id=8 [slave keyboard (3)] ↳ FaceTime HD Camera (Built-in) id=11 [slave keyboard (3)] ↳ Apple Inc. Apple Internal Keyboard / Trackpad id=12 [slave keyboard (3)] ↳ daskeyboard id=10 [slave keyboard (3)] ↳ daskeyboard id=14 [slave keyboard (3)]
選定要測試的裝置
chris@retina:~$ xinput test 14 key release 36 key press 43
https://superuser.com/questions/248517/show-keys-pressed-in-linux
全站熱搜
留言列表