2012-12-10 3 views
2

나는 unix.stackexchange에서 이미이 질문을 던졌지 만 아직까지는 행운이 없다. 그래서 여기에 게시하고있다. 다행히 누군가 대답을 알고 있습니다.xmodmap ButtonPress 이벤트에 대한 KeyPress 이벤트

Logitech t400 마우스가 생겨서 가운데 ​​마우스의 "상단"부분을 실제 중간 마우스 기능으로 다시 매핑하려는 경우를 제외하고는 모든 것이 잘 작동합니다.

KeyPress event, serial 35, synthetic NO, window 0x5200001, 
root 0x31d, subw 0x0, time 630089839, (80,128), root:(2871,588), 
state 0x10, keycode 133 (keysym 0x31d, (no name)), same_screen YES, 
XLookupString gives 0 bytes: 
XmbLookupString gives 0 bytes: 
XFilterEvent returns: False 

KeyRelease event, serial 36, synthetic NO, window 0x5200001, 
root 0x31d, subw 0x0, time 630089983, (80,128), root:(2871,588), 
state 0x50, keycode 133 (keysym 0x31d, (no name)), same_screen YES, 
XLookupString gives 0 bytes: 
XFilterEvent returns: False 

하단 부분 :

내가 클릭 것으로 xev를 실행하고 캡처 할 때, 모든 마우스 버튼이 ButtonPress/ButtonRelease 이벤트하지만, 가운데 버튼의 상단 부분을 반환은 키 누르기/KeyRelease 이벤트를 반환 가운데 버튼이 잘 작동, 및 반환의 :

ButtonPress event, serial 37, synthetic NO, window 0x5200001, 
root 0x31d, subw 0x0, time 630137726, (10,171), root:(2801,631), 
state 0x10, button 2, same_screen YES 

ButtonRelease event, serial 37, synthetic NO, window 0x5200001, 
root 0x31d, subw 0x0, time 630138960, (10,171), root:(2801,631), 
state 0x210, button 2, same_screen YES 

내가 상부 하부와 같은 방법을 다시 매핑 싶습니다

,이 xmodmap을 가능합니다?

감사합니다.

답변

관련 문제