そんな時に使うのが、「xev」コマンド。
実行するとウィンドが立ち上がるので、そのウィンドをアクティブにしておいてキーやマウス入力すると標準出力にコードが表示される。
結構便利
マイクロソフト レーザー マウス Arc Mouse
KeyPress event, serial 34, synthetic NO, window 0x2e00001,
root 0xac, subw 0x0, time 514588, (168,-14), root:(170,72),
state 0x0, keycode 117 (keysym 0xff56, Next), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
KeyRelease event, serial 34, synthetic NO, window 0x2e00001,
root 0xac, subw 0x0, time 514611, (168,-14), root:(170,72),
state 0x0, keycode 117 (keysym 0xff56, Next), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False
KeyPress event, serial 34, synthetic NO, window 0x2e00001,
root 0xac, subw 0x0, time 516068, (168,-14), root:(170,72),
state 0x0, keycode 112 (keysym 0xff55, Prior), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
KeyRelease event, serial 34, synthetic NO, window 0x2e00001,
root 0xac, subw 0x0, time 516099, (168,-14), root:(170,72),
state 0x0, keycode 112 (keysym 0xff55, Prior), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False
0 件のコメント:
コメントを投稿