Howto invert a mouse axis

Write tutorials here
There are more tutorials here http://community.linuxmint.com/tutorial/welcome
Forum rules
Please don't add support questions to tutorials,start your own thread in the appropriate sub-forum instead. Before you post please read this
Post Reply
zoe washburne
Level 1
Level 1
Posts: 13
Joined: Tue Mar 09, 2010 6:36 am

Howto invert a mouse axis

Post by zoe washburne »

Had some trouble doing this, had to google around, and then figure it out from scratch on the man pages :?

Code: Select all

xinput -list
⎡ Virtual core pointer                    	id=2	[master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer              	id=4	[slave  pointer  (2)]
⎜   ↳ Logitech USB Gaming Mouse               	id=9	[slave  pointer  (2)]
⎜   ↳ Macintosh mouse button emulation        	id=11	[slave  pointer  (2)]
⎜   ↳ USB Optical Mouse                       	id=12	[slave  pointer  (2)]
⎣ Virtual core keyboard                   	id=3	[master keyboard (2)]
    ↳ Virtual core XTEST keyboard             	id=5	[slave  keyboard (3)]
    ↳ Power Button                            	id=6	[slave  keyboard (3)]
    ↳ Power Button                            	id=7	[slave  keyboard (3)]
    ↳ Microsoft LifeCam                       	id=8	[slave  keyboard (3)]
    ↳ AT Translated Set 2 keyboard  
xinput set-int-prop "USB Optical Mouse" "Evdev Axis Inversion" 8 0 1
zoe washburne
Level 1
Level 1
Posts: 13
Joined: Tue Mar 09, 2010 6:36 am

Howto invert a mouse axis

Post by zoe washburne »

Had some trouble trying to invert my mouse "y" axis, had to google around, and then figure it out from scratch on the man pages :?

Code: Select all

xinput -list
⎡ Virtual core pointer id=2 [master pointer (3)]
⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
⎜ ↳ Logitech USB Gaming Mouse id=9 [slave pointer (2)]
⎜ ↳ Macintosh mouse button emulation id=11 [slave pointer (2)]
⎜ ↳ USB Optical Mouse id=12 [slave pointer (2)]
⎣ Virtual core keyboard id=3 [master keyboard (2)]
↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)]
↳ Power Button id=6 [slave keyboard (3)]
↳ Power Button id=7 [slave keyboard (3)]
↳ Microsoft LifeCam id=8 [slave keyboard (3)]
↳ AT Translated Set 2 keyboard

Code: Select all

 xinput set-int-prop "USB Optical Mouse"  "Evdev Axis Inversion" 8 0 1
Hope that helps anyone who is looking for this exact same command!
Post Reply

Return to “Tutorials”