Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
11-05-2004, 11:51 PM
|
#1
|
LQ Newbie
Registered: Sep 2004
Location: Purdue University
Distribution: Slackware 10.0
Posts: 11
Rep:
|
"ZAxisMapping" numbers
What exactly do the "ZAxisMapping" numbers (as a mouse device option in X configuration) mean? I know that to enable normal scroll-wheel functionality, you use "4 5", but can you use other numbers as well? If so, I'm curious as to what they do.
|
|
|
11-05-2004, 11:58 PM
|
#2
|
LQ Guru
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507
Rep: 
|
ZAxisMapping takes the input from the scrollwheel and maps it to button events. In other words, a 5 button mouse with no scrollwheel would perform like a scrollwheel on pressing buttons 4 and 5. 4 and 5 is pretty much fixed because that is how the software understands the inputs.
|
|
|
11-06-2004, 12:27 AM
|
#3
|
Member
Registered: May 2004
Distribution: Ubuntu
Posts: 583
Rep:
|
You can use xev in X to see what X thinks you're doing as you press mouse buttons, helpful for debugging scrollwheels/side buttons etc
"4 5" is most common because that's how many buttons most mice have (each scroll counts as 2 in linux). For people with side buttons use "6 7" since they count as 7 button mice.
|
|
|
11-06-2004, 06:02 PM
|
#4
|
LQ Newbie
Registered: Sep 2004
Location: Purdue University
Distribution: Slackware 10.0
Posts: 11
Original Poster
Rep:
|
Ah, OK. So on a common mouse with two buttons and a clickable scroll-wheel, the left button is 1, right button is 2, scroll-wheel click is 3, scroll-wheel up is 4, and scroll-wheel down is 5. So the point of "ZAxisMapping" is to indicate what buttons control the scrolling. (i.e. scroll-wheel up and scroll-wheel down, hence "4 5")
|
|
|
11-06-2004, 06:13 PM
|
#5
|
Member
Registered: May 2004
Distribution: Ubuntu
Posts: 583
Rep:
|
Yup, you'll also need Option "buttons" "5" so it knows how many total there are.
(might be Buttons, been a while)
|
|
|
All times are GMT -5. The time now is 09:24 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|