LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   R.A.T 9 mouse config (http://www.linuxquestions.org/questions/slackware-14/r-a-t-9-mouse-config-4175436806/)

SeRi@lDiE 11-12-2012 12:50 PM

R.A.T 9 mouse config
 
Hello All.

I just got a RAT9 Mouse and it has been working fine. All the buttons are map correctly except the side scroll wheel which right now it does nothing.
Any body have any advice on what to use for key mapping on slackware?

TIA!

Richard Cranium 11-13-2012 07:33 AM

On a Slackware 14 system, I've got the following in the file /etc/X11/xorg.conf.d/rat7.conf:
Code:

Section "InputClass"
Identifier "R.A.T."
MatchProduct "R.A.T.7|R.A.T.9"
MatchDevicePath "/dev/input/event*"
Option "Buttons" "17"
Option "ButtonMapping" "1 2 3 4 5 0 0 8 9 7 6 12 0 0 0 16 17"
Option "AutoReleaseButtons" "13 14 15"
Option "ZAxisMapping" "4 5 6 7"
EndSection


SeRi@lDiE 11-13-2012 11:03 PM

Thanks for the post... Going to try your settings and see.

SeRi@lDiE 11-15-2012 07:11 AM

Rcihard,

What are your mousse button and wheels mapped to with this config?

---------- Post added 11-15-12 at 09:11 AM ----------

Rcihard,

What are your mousse button and wheels mapped to with this config?

Richard Cranium 11-18-2012 01:39 AM

Quote:

Originally Posted by SeRi@lDiE (Post 4829976)
Rcihard,

What are your mousse button and wheels mapped to with this config?[COLOR="Silver"]

I don't understand what you are asking.

Button 1 is the left mouse button
Button 3 is the right mouse button
Button 2 is the scroll wheel between the left and right mouse buttons
Button 12 is the round button by your thumb
Button 9 is the square thumb button next to button 12
Button 8 is the square thumb button next to button 9
Button 16 is pressing the top of the little square button that's closer to your palm than button 2
Button 17 is pressing the bottom of the little square button that's closer to your palm than button 2
Button 4 is scroll wheel up
Button 5 is scroll wheel down
Buttons 6 and 7 are for the horizontal scroll wheel

From other digging around, I found this little tidbit concerning AutoReleaseButtons:

Code:

/* Mouse button auto-release code.
+ * This is for the likes of the Cyborg R.A.T. mice.
+ * One button found on these mice acts differently:
+ *  first press = button 13 down
+ *  first release = nothing
+ * Then it repeats as follows:
+ *  press = button 13 up, button 14 down
+ *  press = button 14 up, button 15 down
+ *  press = button 13 down, button 15 up
+ * with no action on releasing the button.
+ *
+ * This confuses X: it thinks that the button is still pressed when the user
+ * has actually released it.
+ *
+ * What this code does is to synthesise a button-up event when a
+ * button-down event is received (for specified buttons).
+ */

I have no idea which button they are talking about, unless it's the DPI button.


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