마우스 측면 버튼이 가상 키를 트리거하도록 허용

마우스 측면 버튼이 가상 키를 트리거하도록 허용

두 개의 측면 버튼이 있는 마우스가 있습니다.

xev두 버튼의 출력을 게시했습니다 evtest.

시프

EnterNotify event, serial 37, synthetic NO, window 0x4600001,
root 0x306, subw 0x0, time 5663259, (11,69), root:(799,121),
mode NotifyNormal, detail NotifyInferior, same_screen YES,
focus YES, state 0

KeymapNotify event, serial 37, synthetic NO, window 0x0,
    keys:  6   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   
           0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   

---------------------------------------------------------------------------
---------------------------------------------------------------------------

EnterNotify event, serial 37, synthetic NO, window 0x4600001,
    root 0x306, subw 0x4600002, time 5662311, (30,60), root:(818,112),
    mode NotifyUngrab, detail NotifyVirtual, same_screen YES,
    focus YES, state 0

KeymapNotify event, serial 37, synthetic NO, window 0x0,
    keys:  6   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   
           0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   

시험:

Event: time 1420063746.029705, type 4 (EV_MSC), code 4 (MSC_SCAN), value 90005
Event: time 1420063746.029705, type 1 (EV_KEY), code 276 (BTN_EXTRA), value 1
Event: time 1420063746.029705, -------------- SYN_REPORT ------------
Event: time 1420063746.165669, type 4 (EV_MSC), code 4 (MSC_SCAN), value 90005
Event: time 1420063746.165669, type 1 (EV_KEY), code 276 (BTN_EXTRA), value 0

------------------------------------------------------------------------------
------------------------------------------------------------------------------

Event: time 1420063746.165669, -------------- SYN_REPORT ------------
Event: time 1420063747.373693, type 4 (EV_MSC), code 4 (MSC_SCAN), value 90004
Event: time 1420063747.373693, type 1 (EV_KEY), code 275 (BTN_SIDE), value 1
Event: time 1420063747.373693, -------------- SYN_REPORT ------------
Event: time 1420063747.533689, type 4 (EV_MSC), code 4 (MSC_SCAN), value 90004
Event: time 1420063747.533689, type 1 (EV_KEY), code 275 (BTN_SIDE), value 0

이 버튼을 특정 가상 키에 어떻게 매핑할 수 있나요? 예를 들어, 이러한 버튼을 back및 에 어떻게 매핑합니까 forward?

관련 정보