LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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

Reply
 
Search this Thread
Old 11-06-2004, 12:51 AM   #1
Slaxx
LQ Newbie
 
Registered: Sep 2004
Location: Purdue University
Distribution: Slackware 10.0
Posts: 11

Rep: Reputation: 0
"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.
 
Old 11-06-2004, 12:58 AM   #2
Matir
Moderator
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 118Reputation: 118
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.
 
Old 11-06-2004, 01:27 AM   #3
ror
Member
 
Registered: May 2004
Distribution: Ubuntu
Posts: 583

Rep: Reputation: 33
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.
 
Old 11-06-2004, 07:02 PM   #4
Slaxx
LQ Newbie
 
Registered: Sep 2004
Location: Purdue University
Distribution: Slackware 10.0
Posts: 11

Original Poster
Rep: Reputation: 0
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")
 
Old 11-06-2004, 07:13 PM   #5
ror
Member
 
Registered: May 2004
Distribution: Ubuntu
Posts: 583

Rep: Reputation: 33
Yup, you'll also need Option "buttons" "5" so it knows how many total there are.

(might be Buttons, been a while)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Telling people to use "Google," to "RTFM," or "Use the search feature" Ausar General 77 03-21-2010 12:26 PM
"Xlib: extension "XFree86-DRI" missing on display ":0.0"." zaps Linux - Games 9 05-14-2007 04:07 PM
Fiber card "WWID" numbers balajipriya Linux - Hardware 2 12-15-2004 04:50 AM
That "SuSE green" -- what are the RGB numbers? J.W. General 5 08-12-2004 06:20 PM
Option "ZAxisMapping" "4 5" won't work apax Linux - Hardware 7 11-06-2003 10:41 AM


All times are GMT -5. The time now is 05:23 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration