Reverse x axis of mouse on Raspbian

Soldato
Joined
17 Jan 2006
Posts
4,284
Can anyone help me with something which I had thought would be nice and simple but so far is eluding me.

I am trying to reverse the x axis of a mouse that I have hooked up to a Pi3.

I have found a few places that describe how to do it using Xinput setprop with Evdev Axis Inversion but it just gives me an error saying Evdev Axis Inversion does not exist, so now I'm a little stumped.

Any help would be much appreciated.
 
I finally found something that helped me, it turns out xinput has changed and no longer uses evdev commands, instead what I needed to edit was the Coordinate Transformation Matrix command.

It's a little bit fiddly but luckily I found someone who had done the same as I needed to do so was able to copy what they had put into the terminal and just changed the device and command identities so they matched my devices

what I used was: xinput --set-prop 7 115 -1 0 0 0 1 0 0 0 1

7 = the id of my device found by typing xinput into the terminal and looking down the list of devices until I found the mouse I was using.
115 = the id of the Coordinate Transformation Matrix property for my mouse found by typing xinput --list-props 7 to show a list of all the properties of the mouse
 
Sorry I couldn't help, and I don't expect this is something I'll ever have to worry about, but it's always nice when someone has a problem and then reports the solution for others in case they do.

Thanks :cool:
 
Back
Top Bottom