How can I change mouse keymapping

Posted by zuberuber on Ask Ubuntu See other posts from Ask Ubuntu or by zuberuber
Published on 2012-11-06T16:21:18Z Indexed on 2012/11/06 17:21 UTC
Read the original article Hit count: 647

Filed under:
|

I have Razer DeathAdder(left handed edition) and A4Tech wireless mouse. My problem is I don't know how to change wireless mouse keymapping(swaping left/right click). Can somebody guide me how to do such thing?

List of my devices:

? Virtual core pointer                       id=2    [master pointer  (3)]
?   ? Virtual core XTEST pointer                id=4    [slave  pointer  (2)]
?   ? Logitech Unifying Device. Wireless PID:4004   id=8    [slave  pointer  (2)]
?   ? Razer Razer DeathAdder                    id=11   [slave  pointer  (2)]
?   ? A4TECH USB Device                         id=12   [slave  pointer  (2)]
?   ? A4TECH USB Device                         id=13   [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)]
    ? Logitech USB Keyboard                     id=9    [slave  keyboard (3)]
    ? Logitech USB Keyboard                     id=10   [slave  keyboard (3)]

This is my Razer xinput:

Device 'Razer Razer DeathAdder':
    Device Enabled (121):   1
    Coordinate Transformation Matrix (123): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
    Device Accel Profile (246): 0
    Device Accel Constant Deceleration (247):   5.000000
    Device Accel Adaptive Deceleration (248):   1.000000
    Device Accel Velocity Scaling (249):    10.000000
    Device Product ID (240):    5426, 22
    Device Node (241):  "/dev/input/event4"
    Evdev Axis Inversion (250): 0, 0
    Evdev Axes Swap (252):  0
    Axis Labels (253):  "Rel X" (131), "Rel Y" (132), "Rel Vert Wheel" (274)
    Button Labels (254):    "Button Left" (124), "Button Middle" (125), "Button Right" (126), "Button Wheel Up" (127), "Button Wheel Down" (128), "Button Horiz Wheel Left" (129), "Button Horiz Wheel Right" (130), "Button Side" (269), "Button Extra" (270), "Button Forward" (271), "Button Back" (272), "Button Task" (273), "Button Unknown" (243), "Button Unknown" (243), "Button Unknown" (243), "Button Unknown" (243)
    Evdev Middle Button Emulation (255):    0
    Evdev Middle Button Timeout (256):  50
    Evdev Third Button Emulation (257): 0
    Evdev Third Button Emulation Timeout (258): 1000
    Evdev Third Button Emulation Button (259):  3
    Evdev Third Button Emulation Threshold (260):   20
    Evdev Wheel Emulation (261):    0
    Evdev Wheel Emulation Axes (262):   0, 0, 4, 5
    Evdev Wheel Emulation Inertia (263):    10
    Evdev Wheel Emulation Timeout (264):    200
    Evdev Wheel Emulation Button (265): 4
    Evdev Drag Lock Buttons (266):  0

And this is my wireless mouse xinput:

Device 'A4TECH USB Device':
    Device Enabled (121):   1
    Coordinate Transformation Matrix (123): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
    Device Accel Profile (246): 0
    Device Accel Constant Deceleration (247):   1.000000
    Device Accel Adaptive Deceleration (248):   1.000000
    Device Accel Velocity Scaling (249):    10.000000
    Device Product ID (240):    2522, 1359
    Device Node (241):  "/dev/input/event16"
    Evdev Axis Inversion (250): 0, 0
    Evdev Axes Swap (252):  0
    Axis Labels (253):  "Rel X" (131), "Rel Y" (132), "Rel Horiz Wheel" (245), "Rel Vert Wheel" (274)
    Button Labels (254):    "Button Left" (124), "Button Middle" (125), "Button Right" (126), "Button Wheel Up" (127), "Button Wheel Down" (128), "Button Horiz Wheel Left" (129), "Button Horiz Wheel Right" (130), "Button Side" (269), "Button Extra" (270), "Button Forward" (271), "Button Back" (272), "Button Task" (273), "Button Unknown" (243), "Button Unknown" (243), "Button Unknown" (243), "Button Unknown" (243), "Button Unknown" (243), "Button Unknown" (243), "Button Unknown" (243), "Button Unknown" (243), "Button Unknown" (243), "Button Unknown" (243), "Button Unknown" (243), "Button Unknown" (243)
    Evdev Middle Button Emulation (255):    0
    Evdev Middle Button Timeout (256):  50
    Evdev Third Button Emulation (257): 0
    Evdev Third Button Emulation Timeout (258): 1000
    Evdev Third Button Emulation Button (259):  3
    Evdev Third Button Emulation Threshold (260):   20
    Evdev Wheel Emulation (261):    0
    Evdev Wheel Emulation Axes (262):   0, 0, 4, 5
    Evdev Wheel Emulation Inertia (263):    10
    Evdev Wheel Emulation Timeout (264):    200
    Evdev Wheel Emulation Button (265): 4
    Evdev Drag Lock Buttons (266):  0

© Ask Ubuntu or respective owner

Related posts about mouse

Related posts about xinput