20

In CCSM, there are a lot of different options for mouse button events:

enter image description here

There are basically twenty different mouse buttons registered for my touchpad, presumably. How can I test to see which buttons are which? Is there something I could use which will spit out what button number I've hit so I can see?

Naftuli Kay
  • 4,344

3 Answers3

17

It shows 20 buttons by default, which doesn't mean you actually can trigger 20 buttons.

To check which ones work, you can use the xev command. Type the command into a terminal, ensure the xev window has focus and then try your buttons:

enter image description here

Button numbers are shown as highlighted.

htorque
  • 66,086
fossfreedom
  • 174,526
2

On touch pad,

Single tap             - Button1 (left click)
Two finger tap         - Button 3 (right click)
Two finger up swipe    - Button 4 (scroll)
Two finger down swipe  - Button 5(Scroll)
Two finger right swipe - Button 7(Horiz. scroll)
Two finger left swipe  - Button 6(Horiz. scroll)
2

I find xinput a little more convenient than xev:

xinput test n

where n is your mouse's device number. To find that number, use

xinput list
drevicko
  • 4,523