Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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?

share|improve this question

3 Answers 3

up vote 8 down vote accepted

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.

share|improve this answer
    
+1, great answer! I just noticed button 7 appear in the terminal, but couldn't reproduce it. Is there a way I could find out what caused it? I noticed that pressing two buttons together could cause a new number to appear, but I can't get 7 again. –  Hippo Dec 28 '11 at 5:27
    
certainly not with xev - I dont know of any other tool that will help. sorry. –  fossfreedom Dec 29 '11 at 0:27

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)
share|improve this answer

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
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.