Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

For some reason, I want to use a trackball Logitech (aka Logicool) Marble Mouse (aka Trackman Marble) upside down. Is there a way to reverse the left and right rolling and up and bottom rolling respectively software-wise, without modifying the hardware? I tried this by writing a configuration file in /etc/X11/xorg.conf.g/ such as

Section "InputClass"
    Identifier "Marble Mouse"
    MatchProduct "Logitech USB Trackball"
    Option "EmulateWheel" "true"
    Option "EmulateWheelButton" "8"
    Option "XAxisMapping" "6 7"
    Option "Emulate3Buttons" "true"
    Option "ButtonMapping" "1 2 3 5 4 7 6 2 2"
EndSection

The crucial part is that I switched the keys 4 and 5 and 6 and 7 so that instead of:

    Option "ButtonMapping" "1 2 3 4 5 6 7 2 2"

I have:

    Option "ButtonMapping" "1 2 3 5 4 7 6 2 2"

But this is not working, and this maybe only valid for scroll wheel emulation mode. How can I reverse the rolling?

share|improve this question
add comment

1 Answer

up vote 4 down vote accepted

In gaming we just refer to this as "invert mouse".

From the Xorg mouse(4) man page:

Option "InvX" "boolean"
    Invert the X axis. Default: off. 
Option "InvY" "boolean"
    Invert the Y axis. Default: off. 
share|improve this answer
1  
You may are using evdev instead of mouse - have a look at linux.die.net/man/4/evdev - it may be InvertY and InvertX –  Ulrich Dangel Jun 4 '12 at 3:50
    
JodieC and @Ulrich Thanks. I tried this answer along the suggestion of Ulrich. I tried InvertX and InvertY, and it worked (Haven't tried InvX, InvY). –  sawa Jun 4 '12 at 4:52
add comment

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.